@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 CHANGED
@@ -40,6 +40,9 @@ var defaultConfig3 = {
40
40
  coverageProvider: "v8",
41
41
  fakeTimers: {
42
42
  enableGlobally: true
43
+ },
44
+ moduleNameMapper: {
45
+ "\\.(css|less|scss|sass)$": "identity-obj-proxy"
43
46
  }
44
47
  };
45
48
  var jestConfig = configCreator(defaultConfig3);
package/dist/index.js CHANGED
@@ -72,6 +72,9 @@ var defaultConfig3 = {
72
72
  coverageProvider: "v8",
73
73
  fakeTimers: {
74
74
  enableGlobally: true
75
+ },
76
+ moduleNameMapper: {
77
+ "\\.(css|less|scss|sass)$": "identity-obj-proxy"
75
78
  }
76
79
  };
77
80
  var jestConfig = configCreator(defaultConfig3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/config",
3
- "version": "1.16.4",
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": "c98df8182caa5b9649ce667e88e84cddbe5ef35e"
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);