@cedarjs/testing 6.0.0-canary.2771 → 6.0.0-canary.2772

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.
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA0Db,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -91,6 +91,23 @@ const config = {
91
91
  "^(\\.{1,2}/.*)\\.js$": "$1"
92
92
  },
93
93
  transform: {
94
+ // `@cedarjs/context` is ESM-only, and @cedarjs/testing's own api entry
95
+ // point (which virtually every generated project's api-side test
96
+ // imports, for scenario/mock helpers) requires it at the top level. Jest's
97
+ // CJS runtime can't parse the real ESM this now emits, so it needs the
98
+ // same babel-jest carve-out the web preset already uses for ESM-only
99
+ // node_modules packages (see jest-preset.ts on the web side for the
100
+ // fuller explanation of why this is necessary).
101
+ "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\]context[/\\\\].+\\.js$": [
102
+ "babel-jest",
103
+ {
104
+ babelrc: false,
105
+ configFile: false,
106
+ presets: [
107
+ [require.resolve("@babel/preset-env"), { targets: { node: "20" } }]
108
+ ]
109
+ }
110
+ ],
94
111
  "\\.[cm]?[jt]sx?$": [
95
112
  "babel-jest",
96
113
  // When jest runs tests in parallel, it serializes the config before passing down options to babel
@@ -104,6 +121,9 @@ const config = {
104
121
  }
105
122
  ]
106
123
  },
124
+ transformIgnorePatterns: [
125
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
126
+ ],
107
127
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
108
128
  };
109
129
  var jest_preset_default = config;
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA0Db,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -91,6 +91,23 @@ const config = {
91
91
  "^(\\.{1,2}/.*)\\.js$": "$1"
92
92
  },
93
93
  transform: {
94
+ // `@cedarjs/context` is ESM-only, and @cedarjs/testing's own api entry
95
+ // point (which virtually every generated project's api-side test
96
+ // imports, for scenario/mock helpers) requires it at the top level. Jest's
97
+ // CJS runtime can't parse the real ESM this now emits, so it needs the
98
+ // same babel-jest carve-out the web preset already uses for ESM-only
99
+ // node_modules packages (see jest-preset.ts on the web side for the
100
+ // fuller explanation of why this is necessary).
101
+ "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\]context[/\\\\].+\\.js$": [
102
+ "babel-jest",
103
+ {
104
+ babelrc: false,
105
+ configFile: false,
106
+ presets: [
107
+ [require.resolve("@babel/preset-env"), { targets: { node: "20" } }]
108
+ ]
109
+ }
110
+ ],
94
111
  "\\.[cm]?[jt]sx?$": [
95
112
  "babel-jest",
96
113
  // When jest runs tests in parallel, it serializes the config before passing down options to babel
@@ -104,6 +121,9 @@ const config = {
104
121
  }
105
122
  ]
106
123
  },
124
+ transformIgnorePatterns: [
125
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
126
+ ],
107
127
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
108
128
  };
109
129
  var jest_preset_default = config;
@@ -1 +1 @@
1
- {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA0Db,CAAA;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"jest-preset.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/jest-preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAkClC,QAAA,MAAM,MAAM,EAAE,MA8Eb,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -58,6 +58,23 @@ const config = {
58
58
  "^(\\.{1,2}/.*)\\.js$": "$1"
59
59
  },
60
60
  transform: {
61
+ // `@cedarjs/context` is ESM-only, and @cedarjs/testing's own api entry
62
+ // point (which virtually every generated project's api-side test
63
+ // imports, for scenario/mock helpers) requires it at the top level. Jest's
64
+ // CJS runtime can't parse the real ESM this now emits, so it needs the
65
+ // same babel-jest carve-out the web preset already uses for ESM-only
66
+ // node_modules packages (see jest-preset.ts on the web side for the
67
+ // fuller explanation of why this is necessary).
68
+ "[/\\\\]node_modules[/\\\\]@cedarjs[/\\\\]context[/\\\\].+\\.js$": [
69
+ "babel-jest",
70
+ {
71
+ babelrc: false,
72
+ configFile: false,
73
+ presets: [
74
+ [require.resolve("@babel/preset-env"), { targets: { node: "20" } }]
75
+ ]
76
+ }
77
+ ],
61
78
  "\\.[cm]?[jt]sx?$": [
62
79
  "babel-jest",
63
80
  // When jest runs tests in parallel, it serializes the config before passing down options to babel
@@ -71,6 +88,9 @@ const config = {
71
88
  }
72
89
  ]
73
90
  },
91
+ transformIgnorePatterns: [
92
+ "[/\\\\]node_modules[/\\\\](?!@cedarjs[/\\\\]context[/\\\\])"
93
+ ],
74
94
  testPathIgnorePatterns: [".scenarios.[jt]s$"]
75
95
  };
76
96
  var jest_preset_default = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/testing",
3
- "version": "6.0.0-canary.2771",
3
+ "version": "6.0.0-canary.2772",
4
4
  "description": "Tools, wrappers and configuration for testing a Cedar project.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -117,10 +117,10 @@
117
117
  },
118
118
  "dependencies": {
119
119
  "@babel/preset-env": "7.29.7",
120
- "@cedarjs/babel-config": "6.0.0-canary.2771",
121
- "@cedarjs/context": "6.0.0-canary.2771",
122
- "@cedarjs/graphql-server": "6.0.0-canary.2771",
123
- "@cedarjs/project-config": "6.0.0-canary.2771",
120
+ "@cedarjs/babel-config": "6.0.0-canary.2772",
121
+ "@cedarjs/context": "6.0.0-canary.2772",
122
+ "@cedarjs/graphql-server": "6.0.0-canary.2772",
123
+ "@cedarjs/project-config": "6.0.0-canary.2772",
124
124
  "@testing-library/dom": "10.4.1",
125
125
  "@testing-library/jest-dom": "6.9.1",
126
126
  "@testing-library/react": "16.3.2",
@@ -142,10 +142,10 @@
142
142
  },
143
143
  "devDependencies": {
144
144
  "@arethetypeswrong/cli": "0.18.5",
145
- "@cedarjs/auth": "6.0.0-canary.2771",
146
- "@cedarjs/framework-tools": "6.0.0-canary.2771",
147
- "@cedarjs/router": "6.0.0-canary.2771",
148
- "@cedarjs/web": "6.0.0-canary.2771",
145
+ "@cedarjs/auth": "6.0.0-canary.2772",
146
+ "@cedarjs/framework-tools": "6.0.0-canary.2772",
147
+ "@cedarjs/router": "6.0.0-canary.2772",
148
+ "@cedarjs/web": "6.0.0-canary.2772",
149
149
  "concurrently": "9.2.4",
150
150
  "jsdom": "27.4.0",
151
151
  "publint": "0.3.22",
@@ -153,9 +153,9 @@
153
153
  "vitest": "4.1.10"
154
154
  },
155
155
  "peerDependencies": {
156
- "@cedarjs/auth": "6.0.0-canary.2771",
157
- "@cedarjs/router": "6.0.0-canary.2771",
158
- "@cedarjs/web": "6.0.0-canary.2771",
156
+ "@cedarjs/auth": "6.0.0-canary.2772",
157
+ "@cedarjs/router": "6.0.0-canary.2772",
158
+ "@cedarjs/web": "6.0.0-canary.2772",
159
159
  "vitest": "4.1.10"
160
160
  },
161
161
  "peerDependenciesMeta": {