@cedarjs/testing 0.15.1-next.0 → 0.15.1-next.23
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/config/jest/api/globalSetup.d.ts.map +1 -1
- package/config/jest/api/globalSetup.js +1 -2
- package/dist/api/vitest/CedarApiVitestEnv.d.ts.map +1 -1
- package/dist/api/vitest/CedarApiVitestEnv.js +1 -2
- package/dist/cjs/api/vitest/CedarApiVitestEnv.js +1 -2
- package/dist/cjs/config/jest/api/globalSetup.d.ts.map +1 -1
- package/dist/cjs/config/jest/api/globalSetup.js +1 -2
- package/dist/config/jest/api/globalSetup.d.ts.map +1 -1
- package/dist/config/jest/api/globalSetup.js +1 -2
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAY/B,
|
|
1
|
+
{"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAY/B,0CAmCC"}
|
|
@@ -52,10 +52,9 @@ async function globalSetup_default() {
|
|
|
52
52
|
if (directUrlEnvVar) {
|
|
53
53
|
env[directUrlEnvVar] = process.env[directUrlEnvVar];
|
|
54
54
|
}
|
|
55
|
-
import_execa.default.sync("yarn rw", command, {
|
|
55
|
+
import_execa.default.sync("yarn", ["rw", ...command], {
|
|
56
56
|
cwd: rwjsPaths.api.base,
|
|
57
57
|
stdio: "inherit",
|
|
58
|
-
shell: true,
|
|
59
58
|
env
|
|
60
59
|
});
|
|
61
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CedarApiVitestEnv.d.ts","sourceRoot":"","sources":["../../../src/api/vitest/CedarApiVitestEnv.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAMtD,QAAA,MAAM,yBAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"CedarApiVitestEnv.d.ts","sourceRoot":"","sources":["../../../src/api/vitest/CedarApiVitestEnv.ts"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAMtD,QAAA,MAAM,yBAAyB,EAAE,WA8ChC,CAAA;AAED,eAAe,yBAAyB,CAAA"}
|
|
@@ -20,10 +20,9 @@ const CedarApiVitestEnvironment = {
|
|
|
20
20
|
const directUrlEnvVar = checkAndReplaceDirectUrl(prismaSchema, defaultDb);
|
|
21
21
|
const command = process.env.TEST_DATABASE_STRATEGY === "reset" ? ["prisma", "migrate", "reset", "--force", "--skip-seed"] : ["prisma", "db", "push", "--force-reset", "--accept-data-loss"];
|
|
22
22
|
const directUrlDefinition = directUrlEnvVar ? { [directUrlEnvVar]: process.env[directUrlEnvVar] } : {};
|
|
23
|
-
execa.sync(
|
|
23
|
+
execa.sync("yarn", ["rw", ...command], {
|
|
24
24
|
cwd: cedarPaths.api.base,
|
|
25
25
|
stdio: "inherit",
|
|
26
|
-
shell: true,
|
|
27
26
|
env: {
|
|
28
27
|
DATABASE_URL: process.env.DATABASE_URL,
|
|
29
28
|
...directUrlDefinition
|
|
@@ -53,10 +53,9 @@ const CedarApiVitestEnvironment = {
|
|
|
53
53
|
const directUrlEnvVar = (0, import_directUrlHelpers.checkAndReplaceDirectUrl)(prismaSchema, defaultDb);
|
|
54
54
|
const command = process.env.TEST_DATABASE_STRATEGY === "reset" ? ["prisma", "migrate", "reset", "--force", "--skip-seed"] : ["prisma", "db", "push", "--force-reset", "--accept-data-loss"];
|
|
55
55
|
const directUrlDefinition = directUrlEnvVar ? { [directUrlEnvVar]: process.env[directUrlEnvVar] } : {};
|
|
56
|
-
import_execa.default.sync(
|
|
56
|
+
import_execa.default.sync("yarn", ["rw", ...command], {
|
|
57
57
|
cwd: cedarPaths.api.base,
|
|
58
58
|
stdio: "inherit",
|
|
59
|
-
shell: true,
|
|
60
59
|
env: {
|
|
61
60
|
DATABASE_URL: process.env.DATABASE_URL,
|
|
62
61
|
...directUrlDefinition
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAY/B,
|
|
1
|
+
{"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAY/B,0CAmCC"}
|
|
@@ -52,10 +52,9 @@ async function globalSetup_default() {
|
|
|
52
52
|
if (directUrlEnvVar) {
|
|
53
53
|
env[directUrlEnvVar] = process.env[directUrlEnvVar];
|
|
54
54
|
}
|
|
55
|
-
import_execa.default.sync("yarn rw", command, {
|
|
55
|
+
import_execa.default.sync("yarn", ["rw", ...command], {
|
|
56
56
|
cwd: rwjsPaths.api.base,
|
|
57
57
|
stdio: "inherit",
|
|
58
|
-
shell: true,
|
|
59
58
|
env
|
|
60
59
|
});
|
|
61
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAY/B,
|
|
1
|
+
{"version":3,"file":"globalSetup.d.ts","sourceRoot":"","sources":["../../../../src/config/jest/api/globalSetup.ts"],"names":[],"mappings":"AACA,OAAO,wBAAwB,CAAA;AAY/B,0CAmCC"}
|
|
@@ -22,10 +22,9 @@ async function globalSetup_default() {
|
|
|
22
22
|
if (directUrlEnvVar) {
|
|
23
23
|
env[directUrlEnvVar] = process.env[directUrlEnvVar];
|
|
24
24
|
}
|
|
25
|
-
execa.sync("yarn rw", command, {
|
|
25
|
+
execa.sync("yarn", ["rw", ...command], {
|
|
26
26
|
cwd: rwjsPaths.api.base,
|
|
27
27
|
stdio: "inherit",
|
|
28
|
-
shell: true,
|
|
29
28
|
env
|
|
30
29
|
});
|
|
31
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/testing",
|
|
3
|
-
"version": "0.15.1-next.
|
|
3
|
+
"version": "0.15.1-next.23+0753a9ca2",
|
|
4
4
|
"description": "Tools, wrappers and configuration for testing a CedarJS 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": "0.15.1-next.
|
|
123
|
-
"@cedarjs/babel-config": "0.15.1-next.
|
|
124
|
-
"@cedarjs/context": "0.15.1-next.
|
|
125
|
-
"@cedarjs/graphql-server": "0.15.1-next.
|
|
126
|
-
"@cedarjs/project-config": "0.15.1-next.
|
|
127
|
-
"@cedarjs/router": "0.15.1-next.
|
|
128
|
-
"@cedarjs/web": "0.15.1-next.
|
|
122
|
+
"@cedarjs/auth": "0.15.1-next.23+0753a9ca2",
|
|
123
|
+
"@cedarjs/babel-config": "0.15.1-next.23+0753a9ca2",
|
|
124
|
+
"@cedarjs/context": "0.15.1-next.23+0753a9ca2",
|
|
125
|
+
"@cedarjs/graphql-server": "0.15.1-next.23+0753a9ca2",
|
|
126
|
+
"@cedarjs/project-config": "0.15.1-next.23+0753a9ca2",
|
|
127
|
+
"@cedarjs/router": "0.15.1-next.23+0753a9ca2",
|
|
128
|
+
"@cedarjs/web": "0.15.1-next.23+0753a9ca2",
|
|
129
129
|
"@testing-library/jest-dom": "6.5.0",
|
|
130
130
|
"@testing-library/react": "14.3.1",
|
|
131
131
|
"@testing-library/user-event": "14.5.2",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"whatwg-fetch": "3.6.20"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
|
-
"@cedarjs/framework-tools": "0.15.1-next.
|
|
148
|
+
"@cedarjs/framework-tools": "0.15.1-next.23",
|
|
149
149
|
"concurrently": "8.2.2",
|
|
150
150
|
"jsdom": "24.1.3",
|
|
151
151
|
"publint": "0.3.12",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
|
-
"gitHead": "
|
|
167
|
+
"gitHead": "0753a9ca25ba21702aed57f7f5e8b49db9957984",
|
|
168
168
|
"nx": {
|
|
169
169
|
"targets": {
|
|
170
170
|
"build": {
|