@mysetup/jest-config 1.3.1 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/__mocks__/svgMock.d.ts.map +1 -1
- package/dist/__mocks__/svgMock.js +2 -2
- package/dist/index.js +5 -3
- package/package.json +44 -44
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# `@mysetup/jest-config`
|
|
2
|
-
|
|
3
|
-
A base [Jest](https://jestjs.io/) configuration with [ts-jest](https://kulshekhar.github.io/ts-jest/), [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/), and [Jest aXe](https://github.com/nickcolley/jest-axe).
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```ts
|
|
8
|
-
const jestConfig = require("@mysetup/jest-config");
|
|
9
|
-
|
|
10
|
-
module.exports = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
```
|
|
1
|
+
# `@mysetup/jest-config`
|
|
2
|
+
|
|
3
|
+
A base [Jest](https://jestjs.io/) configuration with [ts-jest](https://kulshekhar.github.io/ts-jest/), [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/), and [Jest aXe](https://github.com/nickcolley/jest-axe).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
const jestConfig = require("@mysetup/jest-config");
|
|
9
|
+
|
|
10
|
+
module.exports = {
|
|
11
|
+
...jestConfig,
|
|
12
|
+
// Additional configuration
|
|
13
|
+
};
|
|
14
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svgMock.d.ts","sourceRoot":"","sources":["../../__mocks__/svgMock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"svgMock.d.ts","sourceRoot":"","sources":["../../__mocks__/svgMock.ts"],"names":[],"mappings":";AAAA,wBAA0B;AAC1B,eAAO,MAAM,cAAc,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,9 +23,9 @@ module.exports = {
|
|
|
23
23
|
"node_modules",
|
|
24
24
|
path.resolve(__dirname, "../"),
|
|
25
25
|
],
|
|
26
|
-
moduleFileExtensions: [
|
|
26
|
+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
|
|
27
27
|
moduleNameMapper: {
|
|
28
|
-
|
|
28
|
+
"\\.(svg)$": path.resolve(__dirname, "./__mocks__/svgMock.js"),
|
|
29
29
|
"\\.(css|scss)$": path.resolve(__dirname, "./__mocks__/styleMock.js"),
|
|
30
30
|
"swiper/css": path.resolve(__dirname, "./__mocks__/styleMock.js"),
|
|
31
31
|
"@mysetup/logger": path.resolve(__dirname, "./__mocks__/logger.js"),
|
|
@@ -35,7 +35,9 @@ module.exports = {
|
|
|
35
35
|
setupFilesAfterEnv: [path.resolve(__dirname, "./setupTests.js")],
|
|
36
36
|
testEnvironment: "jsdom",
|
|
37
37
|
testPathIgnorePatterns: ["generated/", "/node_modules/", "/dist/"],
|
|
38
|
-
transformIgnorePatterns: [
|
|
38
|
+
transformIgnorePatterns: [
|
|
39
|
+
"node_modules/.pnpm/(?!(swiper|ssr-window|dom7))",
|
|
40
|
+
],
|
|
39
41
|
transform: {
|
|
40
42
|
"^.+\\.(js|jsx|ts|tsx)$": ["babel-jest", { presets: ["next/babel"] }],
|
|
41
43
|
},
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"name": "@mysetup/jest-config",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
14
16
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
},
|
|
46
|
-
"packageManager": "pnpm@9.9.0"
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "rm -rf ./dist && tsc",
|
|
19
|
+
"clean": "rm -rf node_modules .swc dist pnpm-lock.yaml && echo \"✅ Successfully removed \""
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@react-aria/utils": "^3.27.0",
|
|
23
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
24
|
+
"@testing-library/react": "^16.2.0",
|
|
25
|
+
"@types/react-dom": "^18.3.1",
|
|
26
|
+
"jest": "^29.7.0",
|
|
27
|
+
"jest-axe": "^9.0.0",
|
|
28
|
+
"jest-canvas-mock": "^2.5.2",
|
|
29
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
30
|
+
"next": "^15.1.9",
|
|
31
|
+
"ts-jest": "^29.2.5"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@mysetup/tsconfig": "latest",
|
|
35
|
+
"@types/jest": "^29.5.14",
|
|
36
|
+
"@types/jest-axe": "^3.5.9",
|
|
37
|
+
"@types/node": "^22.13.1",
|
|
38
|
+
"react": "^18.3.1",
|
|
39
|
+
"react-dom": "^18.3.1",
|
|
40
|
+
"typescript": "5.5.4"
|
|
41
|
+
},
|
|
42
|
+
"prettier": "@mysetup/prettier-config",
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=20.15.1"
|
|
45
|
+
},
|
|
46
|
+
"packageManager": "pnpm@9.9.0"
|
|
47
47
|
}
|