Skip to content

Commit 32acec7

Browse files
committed
feat: native typings
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
1 parent 0240824 commit 32acec7

File tree

112 files changed

+12962
-14323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+12962
-14323
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
lib/
2+
dist/
23
node_modules/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
lib/
3+
dist/
34
screenshots/

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
lib/
2+
dist/
23
package.json
34
lerna.json
45
CHANGELOG.md

.swcrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"$schema": "https://json.schemastore.org/swcrc",
33
"jsc": {
4-
"target": "es2022"
4+
"target": "es2022",
5+
"parser": {
6+
"syntax": "typescript"
7+
}
58
}
69
}

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,3 @@ module.exports = {
427427
## Inspiration
428428

429429
Thanks to Fumihiro Xue for his great [Jest example](https://github.com/xfumihiro/jest-puppeteer-example).
430-
431-
## License
432-
433-
MIT

jest-puppeteer.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ const port = process.env.TEST_SERVER_PORT
44

55
process.env.TEST_SERVER_PORT = port;
66

7-
module.exports = {
7+
/**
8+
* @type {import('jest-environment-puppeteer').JestPuppeteerConfig}
9+
*/
10+
const jestPuppeteerConfig = {
811
launch: {
912
headless: true,
1013
},
@@ -16,3 +19,5 @@ module.exports = {
1619
usedPortAction: "kill",
1720
},
1821
};
22+
23+
module.exports = jestPuppeteerConfig;

nx.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"targetDefaults": {
3+
"build": {
4+
"dependsOn": ["^build"],
5+
"outputs": ["{projectRoot}/dist"]
6+
}
7+
},
8+
"tasksRunnerOptions": {
9+
"default": {
10+
"runner": "nx/tasks-runners/default",
11+
"options": {
12+
"cacheableOperations": ["prebuild", "build"]
13+
}
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)