Skip to content

Commit

Permalink
Address issues raised during code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Feb 22, 2019
1 parent 2cbb31a commit 88c8cd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/e2e-tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
],
setupFilesAfterEnv: [
'<rootDir>/config/setup-test-framework.js',
'expect-puppeteer',
],
transformIgnorePatterns: [
'node_modules',
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-console/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The simplest setup is to use Jest's `setupFilesAfterEnv` config option:
```js
"jest": {
"setupFilesAfterEnv": [
"./node_modules/@wordpress/jest-console/build/index.js"
"@wordpress/jest-console"
]
},
```
Expand Down
6 changes: 2 additions & 4 deletions packages/jest-preset-default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ npm install @wordpress/jest-preset-default --save-dev
* `modulePaths` - the root dir of the project is used as a location to search when resolving modules.
* `setupFiles` - runs code before each test which sets up global variables required in the testing environment.
* `setupFilesAfterEnv` - runs code which adds improved support for `Console` object and `React` components to the testing framework before each test.
* `snapshotSerializers` - makes it possible to use snapshot tests on `Enzyme` wrappers.
* `testMatch`- includes `/test/` subfolder in the glob patterns Jest uses to detect test files. It detects only test files containing `.js` extension.
* `timers` - use of [fake timers](https://jestjs.io/docs/en/timer-mocks.html) for functions such as `setTimeout` is enabled.
* `transform` - adds support for [PEG.js]( https://github.com/pegjs/pegjs#javascript-api) transformed necessary for WordPress blocks. It also keeps the default [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest) transformer.
* `transform` - keeps the default [babel-jest](https://github.com/facebook/jest/tree/master/packages/babel-jest) transformer.
* `verbose` - each individual test won't be reported during the run.

// Your code goes here
```
<br/><br/><p align="center"><img src="https://s.w.org/style/images/codeispoetry.png?1" alt="Code is Poetry." /></p>
2 changes: 1 addition & 1 deletion packages/jest-puppeteer-axe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The simplest setup is to use Jest's `setupFilesAfterEnv` config option:
```js
"jest": {
"setupFilesAfterEnv": [
"./node_modules/@wordpress/jest-puppeteer-axe/build/index.js"
"@wordpress/jest-puppeteer-axe"
]
},
```
Expand Down

0 comments on commit 88c8cd7

Please sign in to comment.