@egov3/system-design 1.0.2 → 1.0.3
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 +1 -0
- package/jest.config.ts +41 -0
- package/jest.setup.ts +2 -0
- package/package.json +1 -1
- package/src/utils/ClassNamesFn.tsx +1 -1
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# egov3-design
|
package/jest.config.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import nextJest from 'next/jest';
|
|
2
|
+
|
|
3
|
+
const createJestConfig = nextJest({
|
|
4
|
+
dir: './'
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
const customJestConfig = {
|
|
8
|
+
collectCoverage: true,
|
|
9
|
+
collectCoverageFrom: [
|
|
10
|
+
'src/**/*.tsx'
|
|
11
|
+
],
|
|
12
|
+
coveragePathIgnorePatterns: [
|
|
13
|
+
'<rootDir>/src/store',
|
|
14
|
+
'<rootDir>/src/stories',
|
|
15
|
+
],
|
|
16
|
+
testMatch: ['**/*.test.tsx'],
|
|
17
|
+
setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'],
|
|
18
|
+
testEnvironment: 'jsdom',
|
|
19
|
+
moduleNameMapper: {
|
|
20
|
+
'@/(.*)': '<rootDir>/$1',
|
|
21
|
+
'~app/(.*)': '<rootDir>/src/app/$1',
|
|
22
|
+
'~constants/(.*)': '<rootDir>/src/constants/$1',
|
|
23
|
+
'~customHooks/(.*)': '<rootDir>/src/customHooks/$1',
|
|
24
|
+
'~customMock/(.*)': '<rootDir>/__tests__/customMock/$1',
|
|
25
|
+
'~components': '<rootDir>/src/components/index.tsx',
|
|
26
|
+
'~module': '<rootDir>/src/components/index.tsx',
|
|
27
|
+
'~svg': '<rootDir>/src/svg/index.tsx',
|
|
28
|
+
'~templates': '<rootDir>/src/templates/index.tsx',
|
|
29
|
+
'~utils/(.*)': '<rootDir>/src/utils/$1'
|
|
30
|
+
},
|
|
31
|
+
coverageThreshold: {
|
|
32
|
+
global: {
|
|
33
|
+
branches: 40,
|
|
34
|
+
functions: 40,
|
|
35
|
+
lines: 40,
|
|
36
|
+
statements: 40
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default createJestConfig(customJestConfig);
|
package/jest.setup.ts
ADDED
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const ClassNamesFn = (...args: unknown[]) =>
|
|
2
|
-
args.filter((item) => !!item).join(
|
|
2
|
+
args.filter((item) => !!item).join(" ");
|