@ttoss/config 1.16.4 → 1.17.0
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/dist/esm/index.js +3 -0
- package/dist/index.js +3 -0
- package/package.json +4 -3
- package/src/jest.ts +10 -0
package/dist/esm/index.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "Default configuration for packages.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"@commitlint/config-conventional": "^17.0.3",
|
|
35
35
|
"@formatjs/ts-transformer": "^3.9.8",
|
|
36
36
|
"babel-plugin-formatjs": "^10.3.24",
|
|
37
|
-
"deepmerge": "^4.2.2"
|
|
37
|
+
"deepmerge": "^4.2.2",
|
|
38
|
+
"identity-obj-proxy": "^3.0.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@jest/types": "^27.4.2",
|
|
41
42
|
"@types/jest": "^28.1.3",
|
|
42
43
|
"jest": "^28.1.1"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "bea31ace95128d57607156807e402a793b0c46e4"
|
|
45
46
|
}
|
package/src/jest.ts
CHANGED
|
@@ -12,6 +12,16 @@ export const defaultConfig = {
|
|
|
12
12
|
fakeTimers: {
|
|
13
13
|
enableGlobally: true,
|
|
14
14
|
},
|
|
15
|
+
moduleNameMapper: {
|
|
16
|
+
/**
|
|
17
|
+
* Remove CSS import errors:
|
|
18
|
+
*
|
|
19
|
+
* Jest failed to parse a file. This happens e.g. when your code or its
|
|
20
|
+
* dependencies use non-standard JavaScript syntax, or when Jest is not
|
|
21
|
+
* configured to support such syntax.
|
|
22
|
+
*/
|
|
23
|
+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
24
|
+
},
|
|
15
25
|
};
|
|
16
26
|
|
|
17
27
|
export const jestConfig = configCreator<any>(defaultConfig);
|