Skip to content

Commit

Permalink
feat: native typings
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

- `spawnd` now exports `{ spawd }` instead of default to ensure
  compatibilty with ESM
- `toMatch` has been renamed `toMatchTextContent` to avoid collision
  with existing Jest matcher
  • Loading branch information
gregberge committed Mar 6, 2023
1 parent 0240824 commit 32acec7
Show file tree
Hide file tree
Showing 112 changed files with 12,962 additions and 14,323 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
lib/
dist/
node_modules/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
lib/
dist/
screenshots/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
lib/
dist/
package.json
lerna.json
CHANGELOG.md
5 changes: 4 additions & 1 deletion .swcrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"target": "es2022"
"target": "es2022",
"parser": {
"syntax": "typescript"
}
}
}
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,3 @@ module.exports = {
## Inspiration

Thanks to Fumihiro Xue for his great [Jest example](https://github.com/xfumihiro/jest-puppeteer-example).

## License

MIT
7 changes: 6 additions & 1 deletion jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ const port = process.env.TEST_SERVER_PORT

process.env.TEST_SERVER_PORT = port;

module.exports = {
/**
* @type {import('jest-environment-puppeteer').JestPuppeteerConfig}
*/
const jestPuppeteerConfig = {
launch: {
headless: true,
},
Expand All @@ -16,3 +19,5 @@ module.exports = {
usedPortAction: "kill",
},
};

module.exports = jestPuppeteerConfig;
16 changes: 16 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/dist"]
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["prebuild", "build"]
}
}
}
}
Loading

0 comments on commit 32acec7

Please sign in to comment.