@akanjs/config 0.0.11 → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/config",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,7 +30,8 @@ const withBase = (name) => {
30
30
  const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? "../../pkgs/" : "";
31
31
  return {
32
32
  displayName: name,
33
- preset: `${akanjsPrefix}@akanjs/config/src/jest.preset.js`,
33
+ resolver: "@nx/jest/plugins/resolver",
34
+ coverageReporters: ["html"],
34
35
  globalSetup: `${akanjsPrefix}@akanjs/config/src/jest.globalSetup.ts`,
35
36
  setupFilesAfterEnv: [`${akanjsPrefix}@akanjs/config/src/jest.setupFilesAfterEnv.ts`],
36
37
  globalTeardown: `${akanjsPrefix}@akanjs/config/src/jest.globalTeardown.ts`,
@@ -41,7 +42,11 @@ const withBase = (name) => {
41
42
  "signal\\.(test)\\.ts$": ["ts-jest", { tsconfig: "<rootDir>/tsconfig.spec.json" }]
42
43
  },
43
44
  moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
44
- coverageDirectory: `../../coverage/libs/${name}`
45
+ coverageDirectory: `../../coverage/libs/${name}`,
46
+ testEnvironment: "jsdom",
47
+ testEnvironmentOptions: {
48
+ customExportConditions: ["node", "require", "default"]
49
+ }
45
50
  };
46
51
  };
47
52
  // Annotate the CommonJS export names for ESM import in node:
@@ -10,7 +10,8 @@ export const withBase = (name: string): Config.InitialOptions => {
10
10
  const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? "../../pkgs/" : "";
11
11
  return {
12
12
  displayName: name,
13
- preset: `${akanjsPrefix}@akanjs/config/src/jest.preset.js`,
13
+ resolver: "@nx/jest/plugins/resolver",
14
+ coverageReporters: ["html"],
14
15
  globalSetup: `${akanjsPrefix}@akanjs/config/src/jest.globalSetup.ts`,
15
16
  setupFilesAfterEnv: [`${akanjsPrefix}@akanjs/config/src/jest.setupFilesAfterEnv.ts`],
16
17
  globalTeardown: `${akanjsPrefix}@akanjs/config/src/jest.globalTeardown.ts`,
@@ -22,5 +23,9 @@ export const withBase = (name: string): Config.InitialOptions => {
22
23
  },
23
24
  moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
24
25
  coverageDirectory: `../../coverage/libs/${name}`,
26
+ testEnvironment: "jsdom",
27
+ testEnvironmentOptions: {
28
+ customExportConditions: ["node", "require", "default"],
29
+ },
25
30
  };
26
31
  };