@orchestrator-ui/jest-config 0.0.2
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/.turbo/turbo-build.log +7 -0
- package/CHANGELOG.md +13 -0
- package/dist/jest-base.config.mjs +25 -0
- package/jest-base.config.js +14 -0
- package/package.json +24 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$ tsup jest-base.config.js --format esm
|
|
2
|
+
[34mCLI[39m Building entry: jest-base.config.js
|
|
3
|
+
[34mCLI[39m tsup v7.1.0
|
|
4
|
+
[34mCLI[39m Target: node16
|
|
5
|
+
[34mESM[39m Build start
|
|
6
|
+
[32mESM[39m [1mdist\jest-base.config.mjs [22m[32m858.00 B[39m
|
|
7
|
+
[32mESM[39m ⚡️ Build success in 25ms
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// jest-base.config.js
|
|
7
|
+
var require_jest_base_config = __commonJS({
|
|
8
|
+
"jest-base.config.js"(exports, module) {
|
|
9
|
+
module.exports = {
|
|
10
|
+
resetMocks: true,
|
|
11
|
+
coveragePathIgnorePatterns: [],
|
|
12
|
+
collectCoverageFrom: ["<rootDir>/src/**/*.{js,ts,tsx}"],
|
|
13
|
+
coverageThreshold: null,
|
|
14
|
+
testEnvironment: "jsdom",
|
|
15
|
+
transform: {
|
|
16
|
+
"^.+\\.tsx?$": "esbuild-jest",
|
|
17
|
+
"^.+\\.jsx?$": "esbuild-jest"
|
|
18
|
+
},
|
|
19
|
+
setupFilesAfterEnv: ["@testing-library/jest-dom"],
|
|
20
|
+
moduleDirectories: ["node_modules"],
|
|
21
|
+
moduleFileExtensions: ["js", "jsx", "json", "ts", "tsx"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export default require_jest_base_config();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
resetMocks: true,
|
|
3
|
+
coveragePathIgnorePatterns: [],
|
|
4
|
+
collectCoverageFrom: ['<rootDir>/src/**/*.{js,ts,tsx}'],
|
|
5
|
+
coverageThreshold: null,
|
|
6
|
+
testEnvironment: 'jsdom',
|
|
7
|
+
transform: {
|
|
8
|
+
'^.+\\.tsx?$': 'esbuild-jest',
|
|
9
|
+
'^.+\\.jsx?$': 'esbuild-jest',
|
|
10
|
+
},
|
|
11
|
+
setupFilesAfterEnv: ['@testing-library/jest-dom'],
|
|
12
|
+
moduleDirectories: ['node_modules'],
|
|
13
|
+
moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
|
|
14
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orchestrator-ui/jest-config",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsup jest-base.config.js --format esm",
|
|
10
|
+
"dev": "yarn build -- --watch"
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@testing-library/jest-dom": "^5.16.1",
|
|
15
|
+
"@testing-library/react": "^14.0.0",
|
|
16
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
17
|
+
"@testing-library/user-event": "^13.5.0",
|
|
18
|
+
"@types/jest": "^27.4.0",
|
|
19
|
+
"esbuild": "^0.14.10",
|
|
20
|
+
"esbuild-jest": "^0.5.0",
|
|
21
|
+
"jest": "^27.4.7",
|
|
22
|
+
"jest-watch-typeahead": "^1.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|