Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use central jest config in browser package
  • Loading branch information
lobsterkatie committed Apr 11, 2022
commit 25f92ad02005841c0db5b6eee3f8cf4da6879e27
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
'^.+\\.ts$': 'ts-jest',
'^.+\\.tsx$': 'ts-jest',
},
coverageDirectory: '<rootDir>/coverage',
moduleFileExtensions: ['js', 'ts', 'tsx'],
testEnvironment: 'node',
testMatch: ['<rootDir>/**/*.test.ts', '<rootDir>/**/*.test.tsx'],
Expand Down
7 changes: 7 additions & 0 deletions packages/browser/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const baseConfig = require('../../jest.config.js');

module.exports = {
...baseConfig,
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/test/unit/**/*.test.ts'],
};
4 changes: 2 additions & 2 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
"size:check:es5": "cat build/bundles/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'",
"size:check:es6": "cat build/bundles/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'",
"test": "run-s test:unit",
"test:unit": "jest --config test/unit/jest.config.js",
"test:unit": "jest",
"test:integration": "test/integration/run.js",
"test:integration:checkbrowsers": "node scripts/checkbrowsers.js",
"test:package": "node test/package/npm-build.js && rm test/package/tmp.js",
"test:unit:watch": "jest --config test/unit/jest.config.js --watch",
"test:unit:watch": "jest --watch",
"test:integration:watch": "test/integration/run.js --watch"
},
"volta": {
Expand Down
16 changes: 0 additions & 16 deletions packages/browser/test/unit/jest.config.js

This file was deleted.