diff --git a/.circleci/config.yml b/.circleci/config.yml index 00cd126560ab5..311665d0f3df3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -94,16 +94,6 @@ jobs: - *run_yarn - run: yarn test-prod --maxWorkers=2 - test_coverage: - docker: *docker - environment: *environment - - steps: - - checkout - - *restore_yarn_cache - - *run_yarn - - run: ./scripts/circleci/test_coverage.sh - build: docker: *docker environment: *environment @@ -257,6 +247,3 @@ workflows: - test_fuzz: requires: - setup - - test_coverage: - requires: - - setup diff --git a/.eslintrc.js b/.eslintrc.js index de78bd074902c..c91ba7e6e7fc4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -129,6 +129,8 @@ module.exports = { rules: { // https://github.com/jest-community/eslint-plugin-jest 'jest/no-focused-tests': ERROR, + 'jest/valid-expect': ERROR, + 'jest/valid-expect-in-promise': ERROR, }, }, { @@ -140,6 +142,8 @@ module.exports = { ], globals: { + SharedArrayBuffer: true, + spyOnDev: true, spyOnDevAndProd: true, spyOnProd: true, diff --git a/fixtures/ssr/src/components/Chrome.js b/fixtures/ssr/src/components/Chrome.js index b52c8d0ee74d4..5bad11aae5a27 100644 --- a/fixtures/ssr/src/components/Chrome.js +++ b/fixtures/ssr/src/components/Chrome.js @@ -26,7 +26,16 @@ export default class Chrome extends Component { {this.props.children}
- this.setState({theme})} /> + { + React.unstable_withSuspenseConfig( + () => { + this.setState({theme}); + }, + {timeoutMs: 6000} + ); + }} + />