Skip to content

Commit

Permalink
Merge pull request #294 from EmmaRamirez/release/1.3.0
Browse files Browse the repository at this point in the history
Release 1.3.0
  • Loading branch information
EmmaRamirez authored Oct 5, 2020
2 parents 3d24132 + afeb5d2 commit 9357c60
Show file tree
Hide file tree
Showing 59 changed files with 12,667 additions and 8,879 deletions.
28 changes: 24 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
language: node_js

node_js:
- '10'
- '12'
- 12

# if using Ubuntu 16 need this library
# https://github.com/cypress-io/cypress-documentation/pull/1647
addons:
apt:
packages:
- libgconf-2-4

cache:
# cache both npm modules and Cypress binary
directories:
- node_modules
- ~/.npm
- ~/.cache

script:
# ## print all Travis environment variables for debugging
- npm run start:ci &
- npm run cy:run
# after all tests finish running we need
# to kill all background jobs (like "npm start &")
- kill $(jobs -p) || true
- npm test

after_success:
- node node_modules/.bin/jest --coverage --collectCoverageFrom=!src/parsers/*.ts --config jest-config.json && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- node node_modules/.bin/jest --coverage --config jest-config.json && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
7 changes: 7 additions & 0 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"baseUrl": "http://localhost:8080",
"retries": {
"runMode": 5,
"openMode": 2
}
}
6 changes: 6 additions & 0 deletions cypress/integration/base.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('visit page', () => {
it('Visits the Kitchen Sink', () => {
// @ts-expect-error
cy.visit('/');
});
});
6 changes: 4 additions & 2 deletions jest-config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"setupTestFrameworkScriptFile": "<rootDir>/setupTests.ts",
"setupFilesAfterEnv": [
"<rootDir>/setupTests.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"\\.(js|ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
"\\.(js|ts|tsx)$": "ts-jest"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules"
Expand Down
Loading

0 comments on commit 9357c60

Please sign in to comment.