@cedarjs/testing 3.0.0-canary.13630 → 3.0.0-canary.13632

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":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAA;AAK/B,0CAyBC"}
1
+ {"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAA;AAK/B,0CAqBC"}
@@ -43,12 +43,9 @@ async function globalSetup_default() {
43
43
  const defaultDb = `file:${import_node_path.default.join(cedarPaths.base, ".redwood", "test.db")}`;
44
44
  process.env.DATABASE_URL = process.env.TEST_DATABASE_URL || defaultDb;
45
45
  const command = process.env.TEST_DATABASE_STRATEGY === "reset" ? ["prisma", "migrate", "reset", "--force"] : ["prisma", "db", "push", "--force-reset", "--accept-data-loss"];
46
- const env = {
47
- DATABASE_URL: process.env.DATABASE_URL
48
- };
49
46
  import_execa.default.sync("yarn", ["cedar", ...command], {
50
47
  cwd: cedarPaths.api.base,
51
48
  stdio: "inherit",
52
- env
49
+ env: process.env
53
50
  });
54
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CedarApiVitestEnv.d.ts","sourceRoot":"","sources":["../../../src/api/vitest/CedarApiVitestEnv.ts"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAItD,QAAA,MAAM,yBAAyB,EAAE,WAkChC,CAAA;AAED,eAAe,yBAAyB,CAAA"}
1
+ {"version":3,"file":"CedarApiVitestEnv.d.ts","sourceRoot":"","sources":["../../../src/api/vitest/CedarApiVitestEnv.ts"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAItD,QAAA,MAAM,yBAAyB,EAAE,WAgChC,CAAA;AAED,eAAe,yBAAyB,CAAA"}
@@ -19,9 +19,7 @@ const CedarApiVitestEnvironment = {
19
19
  execa.sync("yarn", ["cedar", ...command], {
20
20
  cwd: cedarPaths.api.base,
21
21
  stdio: "inherit",
22
- env: {
23
- DATABASE_URL: process.env.DATABASE_URL
24
- }
22
+ env: process.env
25
23
  });
26
24
  return {
27
25
  teardown() {
@@ -52,9 +52,7 @@ const CedarApiVitestEnvironment = {
52
52
  import_execa.default.sync("yarn", ["cedar", ...command], {
53
53
  cwd: cedarPaths.api.base,
54
54
  stdio: "inherit",
55
- env: {
56
- DATABASE_URL: process.env.DATABASE_URL
57
- }
55
+ env: process.env
58
56
  });
59
57
  return {
60
58
  teardown() {
@@ -1 +1 @@
1
- {"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAA;AAK/B,0CAyBC"}
1
+ {"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAA;AAK/B,0CAqBC"}
@@ -43,12 +43,9 @@ async function globalSetup_default() {
43
43
  const defaultDb = `file:${import_node_path.default.join(cedarPaths.base, ".redwood", "test.db")}`;
44
44
  process.env.DATABASE_URL = process.env.TEST_DATABASE_URL || defaultDb;
45
45
  const command = process.env.TEST_DATABASE_STRATEGY === "reset" ? ["prisma", "migrate", "reset", "--force"] : ["prisma", "db", "push", "--force-reset", "--accept-data-loss"];
46
- const env = {
47
- DATABASE_URL: process.env.DATABASE_URL
48
- };
49
46
  import_execa.default.sync("yarn", ["cedar", ...command], {
50
47
  cwd: cedarPaths.api.base,
51
48
  stdio: "inherit",
52
- env
49
+ env: process.env
53
50
  });
54
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAA;AAK/B,0CAyBC"}
1
+ {"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAA;AAK/B,0CAqBC"}
@@ -10,13 +10,10 @@ async function globalSetup_default() {
10
10
  const defaultDb = `file:${path.join(cedarPaths.base, ".redwood", "test.db")}`;
11
11
  process.env.DATABASE_URL = process.env.TEST_DATABASE_URL || defaultDb;
12
12
  const command = process.env.TEST_DATABASE_STRATEGY === "reset" ? ["prisma", "migrate", "reset", "--force"] : ["prisma", "db", "push", "--force-reset", "--accept-data-loss"];
13
- const env = {
14
- DATABASE_URL: process.env.DATABASE_URL
15
- };
16
13
  execa.sync("yarn", ["cedar", ...command], {
17
14
  cwd: cedarPaths.api.base,
18
15
  stdio: "inherit",
19
- env
16
+ env: process.env
20
17
  });
21
18
  }
22
19
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/testing",
3
- "version": "3.0.0-canary.13630+4db40e9a4",
3
+ "version": "3.0.0-canary.13632+62db3925a",
4
4
  "description": "Tools, wrappers and configuration for testing a Cedar project.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -119,13 +119,13 @@
119
119
  "test:watch": "vitest watch"
120
120
  },
121
121
  "dependencies": {
122
- "@cedarjs/auth": "3.0.0-canary.13630",
123
- "@cedarjs/babel-config": "3.0.0-canary.13630",
124
- "@cedarjs/context": "3.0.0-canary.13630",
125
- "@cedarjs/graphql-server": "3.0.0-canary.13630",
126
- "@cedarjs/project-config": "3.0.0-canary.13630",
127
- "@cedarjs/router": "3.0.0-canary.13630",
128
- "@cedarjs/web": "3.0.0-canary.13630",
122
+ "@cedarjs/auth": "3.0.0-canary.13632",
123
+ "@cedarjs/babel-config": "3.0.0-canary.13632",
124
+ "@cedarjs/context": "3.0.0-canary.13632",
125
+ "@cedarjs/graphql-server": "3.0.0-canary.13632",
126
+ "@cedarjs/project-config": "3.0.0-canary.13632",
127
+ "@cedarjs/router": "3.0.0-canary.13632",
128
+ "@cedarjs/web": "3.0.0-canary.13632",
129
129
  "@testing-library/jest-dom": "6.9.1",
130
130
  "@testing-library/react": "14.3.1",
131
131
  "@testing-library/user-event": "14.6.1",
@@ -145,7 +145,7 @@
145
145
  "whatwg-fetch": "3.6.20"
146
146
  },
147
147
  "devDependencies": {
148
- "@cedarjs/framework-tools": "3.0.0-canary.13630",
148
+ "@cedarjs/framework-tools": "3.0.0-canary.13632",
149
149
  "concurrently": "9.2.1",
150
150
  "jsdom": "27.4.0",
151
151
  "publint": "0.3.18",
@@ -164,7 +164,7 @@
164
164
  "publishConfig": {
165
165
  "access": "public"
166
166
  },
167
- "gitHead": "4db40e9a4561b0166250aee42293ddbc667bbba0",
167
+ "gitHead": "62db3925a52f9323466ee4978742df0434e3ee43",
168
168
  "nx": {
169
169
  "targets": {
170
170
  "build": {