Skip to content

Commit

Permalink
Configured CI to run DevTools tests. Updated other test configs not t…
Browse files Browse the repository at this point in the history
…o include DevTools tests.
  • Loading branch information
Brian Vaughn committed Aug 26, 2019
1 parent c00a920 commit 13a93e7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ jobs:
- *run_yarn
- run: yarn test-persistent --maxWorkers=2

test_source_devtools:
docker: *docker
environment: *environment

steps:
- checkout
- *restore_yarn_cache
- *run_yarn
- run: yarn test-devtools --maxWorkers=2

test_source_prod:
docker: *docker
environment: *environment
Expand Down
1 change: 0 additions & 1 deletion scripts/jest/config.source-devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const baseConfig = require('./config.base');

module.exports = Object.assign({}, baseConfig, {
testRegex: 'packages/react-devtools-shared/src/__tests__/[^]+.test.js$',
modulePathIgnorePatterns: [],
snapshotSerializers: [
require.resolve(
'../../packages/react-devtools-shared/src/__tests__/inspectedElementSerializer.js'
Expand Down
2 changes: 2 additions & 0 deletions scripts/jest/config.source-persistent.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const baseConfig = require('./config.base');

module.exports = Object.assign({}, baseConfig, {
modulePathIgnorePatterns: [
...baseConfig.modulePathIgnorePatterns,
'packages/react-devtools-shared',
'ReactIncrementalPerf',
'ReactIncrementalUpdatesMinimalism',
'ReactIncrementalTriangle',
Expand Down
4 changes: 4 additions & 0 deletions scripts/jest/config.source.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
const baseConfig = require('./config.base');

module.exports = Object.assign({}, baseConfig, {
modulePathIgnorePatterns: [
...baseConfig.modulePathIgnorePatterns,
'packages/react-devtools-shared',
],
setupFiles: [
...baseConfig.setupFiles,
require.resolve('./setupHostConfigs.js'),
Expand Down

0 comments on commit 13a93e7

Please sign in to comment.