@cedarjs/testing 5.0.3 → 5.0.4-next.167
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/apiBabelConfig.d.ts.map +1 -1
- package/config/jest/api/apiBabelConfig.js +1 -3
- package/config/jest/api/jest-preset.d.ts.map +1 -1
- package/config/jest/api/jest-preset.js +38 -3
- package/config/jest/babelPlugins/babel-plugin-redwood-cell.d.ts.map +1 -1
- package/config/jest/babelPlugins/babel-plugin-redwood-cell.js +2 -1
- package/config/jest/web/RedwoodWebJestEnv.d.ts +2 -2
- package/config/jest/web/RedwoodWebJestEnv.d.ts.map +1 -1
- package/config/jest/web/RedwoodWebJestEnv.js +12 -7
- package/config/jest/web/jest-fixed-jsdom.d.js +1 -0
- package/config/jest/web/jest-preset.d.ts.map +1 -1
- package/config/jest/web/jest-preset.js +135 -30
- package/config/jest/web/jest.setup.d.ts +0 -1
- package/config/jest/web/jest.setup.d.ts.map +1 -1
- package/config/jest/web/jest.setup.js +0 -1
- package/dist/api/vitest/CedarApiVitestEnv.js +1 -1
- package/dist/api/vitest/vite-plugin-cedar-vitest-api-config.js +7 -7
- package/dist/api/vitest/vitest-api.setup.js +4 -4
- package/dist/cjs/api/vitest/CedarApiVitestEnv.js +1 -1
- package/dist/cjs/api/vitest/vite-plugin-cedar-vitest-api-config.js +7 -7
- package/dist/cjs/api/vitest/vitest-api.setup.js +4 -4
- package/dist/cjs/config/jest/api/apiBabelConfig.d.ts.map +1 -1
- package/dist/cjs/config/jest/api/apiBabelConfig.js +1 -3
- package/dist/cjs/config/jest/api/jest-preset.d.ts.map +1 -1
- package/dist/cjs/config/jest/api/jest-preset.js +38 -3
- package/dist/cjs/config/jest/babelPlugins/babel-plugin-redwood-cell.d.ts.map +1 -1
- package/dist/cjs/config/jest/babelPlugins/babel-plugin-redwood-cell.js +2 -1
- package/dist/cjs/config/jest/web/RedwoodWebJestEnv.d.ts +2 -2
- package/dist/cjs/config/jest/web/RedwoodWebJestEnv.d.ts.map +1 -1
- package/dist/cjs/config/jest/web/RedwoodWebJestEnv.js +12 -7
- package/dist/cjs/config/jest/web/jest-fixed-jsdom.d.js +1 -0
- package/dist/cjs/config/jest/web/jest-preset.d.ts.map +1 -1
- package/dist/cjs/config/jest/web/jest-preset.js +135 -30
- package/dist/cjs/config/jest/web/jest.setup.d.ts +0 -1
- package/dist/cjs/config/jest/web/jest.setup.d.ts.map +1 -1
- package/dist/cjs/config/jest/web/jest.setup.js +0 -1
- package/dist/cjs/web/MockProviders.js +9 -3
- package/dist/cjs/web/mockRequests.d.ts +60 -18
- package/dist/cjs/web/mockRequests.d.ts.map +1 -1
- package/dist/cjs/web/mockRequests.js +107 -36
- package/dist/cjs/web/vitest/index.js +3 -0
- package/dist/cjs/web/vitest/vite-plugin-cedar-vitest-web-config.js +51 -0
- package/dist/cjs/web/vitest/vitest-web.setup.js +19 -0
- package/dist/config/jest/api/apiBabelConfig.d.ts.map +1 -1
- package/dist/config/jest/api/apiBabelConfig.js +1 -3
- package/dist/config/jest/api/index.js +5 -1
- package/dist/config/jest/api/jest-preset.d.ts.map +1 -1
- package/dist/config/jest/api/jest-preset.js +38 -3
- package/dist/config/jest/babelPlugins/babel-plugin-redwood-cell.d.ts.map +1 -1
- package/dist/config/jest/babelPlugins/babel-plugin-redwood-cell.js +2 -1
- package/dist/config/jest/jest-serial-runner.js +5 -1
- package/dist/config/jest/web/RedwoodWebJestEnv.d.ts +2 -2
- package/dist/config/jest/web/RedwoodWebJestEnv.d.ts.map +1 -1
- package/dist/config/jest/web/RedwoodWebJestEnv.js +2 -7
- package/dist/config/jest/web/index.js +5 -1
- package/dist/config/jest/web/jest-fixed-jsdom.d.js +0 -0
- package/dist/config/jest/web/jest-preset.d.ts.map +1 -1
- package/dist/config/jest/web/jest-preset.js +135 -30
- package/dist/config/jest/web/jest.setup.d.ts +0 -1
- package/dist/config/jest/web/jest.setup.d.ts.map +1 -1
- package/dist/config/jest/web/jest.setup.js +0 -1
- package/dist/config/jest/web/resolver.js +5 -1
- package/dist/web/MockProviders.js +9 -3
- package/dist/web/mockRequests.d.ts +60 -18
- package/dist/web/mockRequests.d.ts.map +1 -1
- package/dist/web/mockRequests.js +108 -37
- package/dist/web/vitest/index.d.ts +1 -0
- package/dist/web/vitest/index.d.ts.map +1 -1
- package/dist/web/vitest/index.js +2 -0
- package/dist/web/vitest/vite-plugin-cedar-vitest-web-config.d.ts +12 -0
- package/dist/web/vitest/vite-plugin-cedar-vitest-web-config.d.ts.map +1 -0
- package/dist/web/vitest/vite-plugin-cedar-vitest-web-config.js +16 -0
- package/dist/web/vitest/vitest-web.setup.d.ts +2 -0
- package/dist/web/vitest/vitest-web.setup.d.ts.map +1 -0
- package/dist/web/vitest/vitest-web.setup.js +18 -0
- package/package.json +23 -21
- package/dist/cjs/web/vitest/index.d.ts +0 -4
- package/dist/cjs/web/vitest/index.d.ts.map +0 -1
- package/dist/cjs/web/vitest/vite-plugin-auto-import.d.ts +0 -2
- package/dist/cjs/web/vitest/vite-plugin-auto-import.d.ts.map +0 -1
- package/dist/cjs/web/vitest/vite-plugin-cedarjs-router-import-transform.d.ts +0 -7
- package/dist/cjs/web/vitest/vite-plugin-cedarjs-router-import-transform.d.ts.map +0 -1
- package/dist/cjs/web/vitest/vite-plugin-create-auth-import-transform.d.ts +0 -3
- package/dist/cjs/web/vitest/vite-plugin-create-auth-import-transform.d.ts.map +0 -1
package/dist/web/mockRequests.js
CHANGED
|
@@ -1,28 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bypass, delay, graphql, HttpResponse } from "msw";
|
|
2
2
|
let REQUEST_HANDLER_QUEUE = [];
|
|
3
3
|
let SERVER_INSTANCE;
|
|
4
|
+
const MSW_NODE_SPECIFIER = "msw/node";
|
|
4
5
|
const startMSW = async (target, options) => {
|
|
5
6
|
if (SERVER_INSTANCE) {
|
|
6
7
|
return SERVER_INSTANCE;
|
|
7
8
|
}
|
|
8
9
|
if (target === "browsers") {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const { setupWorker } = await import("msw/browser");
|
|
11
|
+
const worker = setupWorker();
|
|
12
|
+
SERVER_INSTANCE = worker;
|
|
13
|
+
await worker.start(options);
|
|
11
14
|
} else {
|
|
12
|
-
const { setupServer } = await import(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
const { setupServer } = await import(
|
|
16
|
+
/* @vite-ignore */
|
|
17
|
+
MSW_NODE_SPECIFIER
|
|
18
|
+
);
|
|
19
|
+
const server = setupServer();
|
|
20
|
+
SERVER_INSTANCE = server;
|
|
21
|
+
server.listen(options);
|
|
15
22
|
}
|
|
16
23
|
return SERVER_INSTANCE;
|
|
17
24
|
};
|
|
18
25
|
const setupRequestHandlers = () => {
|
|
19
|
-
SERVER_INSTANCE
|
|
26
|
+
SERVER_INSTANCE?.resetHandlers();
|
|
20
27
|
for (const handler of REQUEST_HANDLER_QUEUE) {
|
|
21
|
-
SERVER_INSTANCE
|
|
28
|
+
SERVER_INSTANCE?.use(handler);
|
|
22
29
|
}
|
|
23
30
|
};
|
|
24
31
|
const closeServer = () => {
|
|
25
|
-
SERVER_INSTANCE
|
|
32
|
+
if (!SERVER_INSTANCE) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if ("close" in SERVER_INSTANCE) {
|
|
36
|
+
SERVER_INSTANCE.close();
|
|
37
|
+
} else {
|
|
38
|
+
SERVER_INSTANCE.stop();
|
|
39
|
+
}
|
|
40
|
+
SERVER_INSTANCE = void 0;
|
|
26
41
|
};
|
|
27
42
|
const registerHandler = (handler) => {
|
|
28
43
|
if (!SERVER_INSTANCE) {
|
|
@@ -32,39 +47,95 @@ const registerHandler = (handler) => {
|
|
|
32
47
|
}
|
|
33
48
|
};
|
|
34
49
|
const mockGraphQL = (type, operation, data, responseEnhancer) => {
|
|
35
|
-
const resolver = (
|
|
36
|
-
|
|
37
|
-
|
|
50
|
+
const resolver = async ({
|
|
51
|
+
request,
|
|
52
|
+
query,
|
|
53
|
+
operationName,
|
|
54
|
+
variables,
|
|
55
|
+
cookies
|
|
56
|
+
}) => {
|
|
57
|
+
let d = void 0;
|
|
58
|
+
let status = 200;
|
|
59
|
+
let statusText;
|
|
60
|
+
let delayDurationMs;
|
|
61
|
+
let errorList;
|
|
62
|
+
let extensions;
|
|
63
|
+
let explicitData;
|
|
64
|
+
const extraFields = {};
|
|
65
|
+
const headers = new Headers();
|
|
38
66
|
if (typeof data === "function") {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
67
|
+
const ctx = {
|
|
68
|
+
status: (code, text) => {
|
|
69
|
+
status = code;
|
|
70
|
+
statusText = text;
|
|
71
|
+
},
|
|
72
|
+
delay: (durationMs) => {
|
|
73
|
+
delayDurationMs = durationMs;
|
|
74
|
+
},
|
|
75
|
+
errors: (errors) => {
|
|
76
|
+
errorList = errors;
|
|
77
|
+
},
|
|
78
|
+
set: (name, value) => {
|
|
79
|
+
if (typeof name === "object") {
|
|
80
|
+
for (const [headerName, headerValue] of Object.entries(name)) {
|
|
81
|
+
headers.set(headerName, headerValue);
|
|
82
|
+
}
|
|
83
|
+
} else if (typeof value !== "undefined") {
|
|
84
|
+
headers.set(name, value);
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
cookie: (name, value) => {
|
|
88
|
+
headers.append("Set-Cookie", `${name}=${value}`);
|
|
89
|
+
},
|
|
90
|
+
extensions: (ext) => {
|
|
91
|
+
extensions = ext;
|
|
92
|
+
},
|
|
93
|
+
field: (fieldName, value) => {
|
|
94
|
+
extraFields[fieldName] = value;
|
|
95
|
+
},
|
|
96
|
+
data: (dataValue) => {
|
|
97
|
+
explicitData = dataValue;
|
|
98
|
+
},
|
|
99
|
+
fetch: (input, init) => fetch(bypass(input, init))
|
|
45
100
|
};
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
field: captureTransform(ctx.field)
|
|
101
|
+
const req = {
|
|
102
|
+
request,
|
|
103
|
+
query,
|
|
104
|
+
operationName,
|
|
105
|
+
variables,
|
|
106
|
+
cookies,
|
|
107
|
+
url: new URL(request.url),
|
|
108
|
+
headers: request.headers,
|
|
109
|
+
method: request.method
|
|
56
110
|
};
|
|
57
|
-
d = data(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
});
|
|
111
|
+
d = await data(variables, { req, ctx });
|
|
112
|
+
} else {
|
|
113
|
+
d = data;
|
|
61
114
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
)
|
|
115
|
+
if (responseEnhancer === "networkError") {
|
|
116
|
+
return HttpResponse.error();
|
|
117
|
+
}
|
|
118
|
+
if (typeof delayDurationMs !== "undefined") {
|
|
119
|
+
await delay(delayDurationMs);
|
|
120
|
+
}
|
|
121
|
+
const body = { ...extraFields };
|
|
122
|
+
const bodyData = explicitData ?? d;
|
|
123
|
+
if (typeof bodyData !== "undefined") {
|
|
124
|
+
body.data = bodyData;
|
|
125
|
+
}
|
|
126
|
+
if (typeof errorList !== "undefined") {
|
|
127
|
+
body.errors = errorList;
|
|
128
|
+
}
|
|
129
|
+
if (typeof extensions !== "undefined") {
|
|
130
|
+
body.extensions = extensions;
|
|
131
|
+
}
|
|
132
|
+
return HttpResponse.json(body, { status, statusText, headers });
|
|
66
133
|
};
|
|
67
|
-
registerHandler(
|
|
134
|
+
registerHandler(
|
|
135
|
+
graphql[type](operation, resolver, {
|
|
136
|
+
once: responseEnhancer === "once"
|
|
137
|
+
})
|
|
138
|
+
);
|
|
68
139
|
return data;
|
|
69
140
|
};
|
|
70
141
|
const mockGraphQLQuery = (operation, data, responseEnhancer) => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { cedarJsRouterImportTransformPlugin } from './vite-plugin-cedarjs-router-import-transform.js';
|
|
2
|
+
export { cedarVitestWebConfigPlugin } from './vite-plugin-cedar-vitest-web-config.js';
|
|
2
3
|
export { createAuthImportTransformPlugin } from './vite-plugin-create-auth-import-transform.js';
|
|
3
4
|
export { autoImportsPlugin } from './vite-plugin-auto-import.js';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/web/vitest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAA;AACrG,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/web/vitest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAA;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA"}
|
package/dist/web/vitest/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { cedarJsRouterImportTransformPlugin } from "./vite-plugin-cedarjs-router-import-transform.js";
|
|
2
|
+
import { cedarVitestWebConfigPlugin } from "./vite-plugin-cedar-vitest-web-config.js";
|
|
2
3
|
import { createAuthImportTransformPlugin } from "./vite-plugin-create-auth-import-transform.js";
|
|
3
4
|
import { autoImportsPlugin } from "./vite-plugin-auto-import.js";
|
|
4
5
|
export {
|
|
5
6
|
autoImportsPlugin,
|
|
6
7
|
cedarJsRouterImportTransformPlugin,
|
|
8
|
+
cedarVitestWebConfigPlugin,
|
|
7
9
|
createAuthImportTransformPlugin
|
|
8
10
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Plugin } from 'vite';
|
|
2
|
+
/**
|
|
3
|
+
* Contributes web-side Vitest config, most importantly a setup file that
|
|
4
|
+
* starts MSW so that `mockGraphQLQuery`/`mockGraphQLMutation` handlers (and
|
|
5
|
+
* cell mocks) actually intercept GraphQL requests during tests.
|
|
6
|
+
*
|
|
7
|
+
* Vitest resolves its `test` config from Vite plugins, so returning `test`
|
|
8
|
+
* from the `config` hook here merges with the user's own vitest config (the
|
|
9
|
+
* `setupFiles` arrays are concatenated).
|
|
10
|
+
*/
|
|
11
|
+
export declare function cedarVitestWebConfigPlugin(): Plugin;
|
|
12
|
+
//# sourceMappingURL=vite-plugin-cedar-vitest-web-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-plugin-cedar-vitest-web-config.d.ts","sourceRoot":"","sources":["../../../src/web/vitest/vite-plugin-cedar-vitest-web-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAKlC;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,IAAI,MAAM,CAWnD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
function cedarVitestWebConfigPlugin() {
|
|
3
|
+
return {
|
|
4
|
+
name: "cedar-vitest-web-config",
|
|
5
|
+
config: () => {
|
|
6
|
+
return {
|
|
7
|
+
test: {
|
|
8
|
+
setupFiles: [path.join(import.meta.dirname, "vitest-web.setup.js")]
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
cedarVitestWebConfigPlugin
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest-web.setup.d.ts","sourceRoot":"","sources":["../../../src/web/vitest/vitest-web.setup.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { afterAll, afterEach, beforeAll } from "vitest";
|
|
2
|
+
import { getPaths } from "@cedarjs/project-config";
|
|
3
|
+
import { findCellMocks } from "../findCellMocks.js";
|
|
4
|
+
import { closeServer, setupRequestHandlers, startMSW } from "../mockRequests.js";
|
|
5
|
+
beforeAll(async () => {
|
|
6
|
+
const cellMocks = findCellMocks(getPaths().web.src);
|
|
7
|
+
for (const m of cellMocks) {
|
|
8
|
+
await import(m);
|
|
9
|
+
}
|
|
10
|
+
await startMSW("node");
|
|
11
|
+
setupRequestHandlers();
|
|
12
|
+
});
|
|
13
|
+
afterEach(() => {
|
|
14
|
+
setupRequestHandlers();
|
|
15
|
+
});
|
|
16
|
+
afterAll(() => {
|
|
17
|
+
closeServer();
|
|
18
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/testing",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4-next.167",
|
|
4
4
|
"description": "Tools, wrappers and configuration for testing a Cedar project.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -116,45 +116,47 @@
|
|
|
116
116
|
"test:watch": "vitest watch"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@
|
|
120
|
-
"@cedarjs/
|
|
121
|
-
"@cedarjs/
|
|
122
|
-
"@cedarjs/
|
|
119
|
+
"@babel/preset-env": "7.29.7",
|
|
120
|
+
"@cedarjs/babel-config": "5.0.4-next.167",
|
|
121
|
+
"@cedarjs/context": "5.0.4-next.167",
|
|
122
|
+
"@cedarjs/graphql-server": "5.0.4-next.167",
|
|
123
|
+
"@cedarjs/project-config": "5.0.4-next.167",
|
|
124
|
+
"@testing-library/dom": "10.4.1",
|
|
123
125
|
"@testing-library/jest-dom": "6.9.1",
|
|
124
|
-
"@testing-library/react": "
|
|
126
|
+
"@testing-library/react": "16.3.2",
|
|
125
127
|
"@testing-library/user-event": "14.6.1",
|
|
126
128
|
"@types/aws-lambda": "8.10.162",
|
|
127
129
|
"@types/babel-core": "6.25.10",
|
|
128
130
|
"@types/jest": "29.5.14",
|
|
129
131
|
"@types/node": "24.10.4",
|
|
130
|
-
"ansis": "4.
|
|
132
|
+
"ansis": "4.3.1",
|
|
131
133
|
"babel-jest": "^29.7.0",
|
|
132
134
|
"fast-glob": "3.3.3",
|
|
133
135
|
"jest": "29.7.0",
|
|
134
136
|
"jest-environment-jsdom": "29.7.0",
|
|
137
|
+
"jest-fixed-jsdom": "0.0.11",
|
|
135
138
|
"jest-watch-typeahead": "2.2.2",
|
|
136
|
-
"msw": "
|
|
139
|
+
"msw": "2.15.0",
|
|
137
140
|
"ts-toolbelt": "9.6.0",
|
|
138
|
-
"unplugin-auto-import": "19.3.0"
|
|
139
|
-
"whatwg-fetch": "3.6.20"
|
|
141
|
+
"unplugin-auto-import": "19.3.0"
|
|
140
142
|
},
|
|
141
143
|
"devDependencies": {
|
|
142
|
-
"@arethetypeswrong/cli": "0.18.
|
|
143
|
-
"@cedarjs/auth": "5.0.
|
|
144
|
-
"@cedarjs/framework-tools": "5.0.
|
|
145
|
-
"@cedarjs/router": "5.0.
|
|
146
|
-
"@cedarjs/web": "5.0.
|
|
144
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
145
|
+
"@cedarjs/auth": "5.0.4-next.167",
|
|
146
|
+
"@cedarjs/framework-tools": "5.0.4-next.167",
|
|
147
|
+
"@cedarjs/router": "5.0.4-next.167",
|
|
148
|
+
"@cedarjs/web": "5.0.4-next.167",
|
|
147
149
|
"concurrently": "9.2.4",
|
|
148
150
|
"jsdom": "27.4.0",
|
|
149
|
-
"publint": "0.3.
|
|
151
|
+
"publint": "0.3.22",
|
|
150
152
|
"typescript": "5.9.3",
|
|
151
|
-
"vitest": "
|
|
153
|
+
"vitest": "4.1.10"
|
|
152
154
|
},
|
|
153
155
|
"peerDependencies": {
|
|
154
|
-
"@cedarjs/auth": "5.0.
|
|
155
|
-
"@cedarjs/router": "5.0.
|
|
156
|
-
"@cedarjs/web": "5.0.
|
|
157
|
-
"vitest": "
|
|
156
|
+
"@cedarjs/auth": "5.0.4-next.167",
|
|
157
|
+
"@cedarjs/router": "5.0.4-next.167",
|
|
158
|
+
"@cedarjs/web": "5.0.4-next.167",
|
|
159
|
+
"vitest": "4.1.10"
|
|
158
160
|
},
|
|
159
161
|
"peerDependenciesMeta": {
|
|
160
162
|
"vitest": {
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { cedarJsRouterImportTransformPlugin } from './vite-plugin-cedarjs-router-import-transform.js';
|
|
2
|
-
export { createAuthImportTransformPlugin } from './vite-plugin-create-auth-import-transform.js';
|
|
3
|
-
export { autoImportsPlugin } from './vite-plugin-auto-import.js';
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web/vitest/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAA;AACrG,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAA;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-auto-import.d.ts","sourceRoot":"","sources":["../../../../src/web/vitest/vite-plugin-auto-import.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,oJAsBhC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PluginOption } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Replace `@cedarjs/router` imports with imports of
|
|
4
|
-
* `@cedarjs/testing/web/MockRouter.js` instead
|
|
5
|
-
*/
|
|
6
|
-
export declare function cedarJsRouterImportTransformPlugin(): PluginOption;
|
|
7
|
-
//# sourceMappingURL=vite-plugin-cedarjs-router-import-transform.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-cedarjs-router-import-transform.d.ts","sourceRoot":"","sources":["../../../../src/web/vitest/vite-plugin-cedarjs-router-import-transform.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;GAGG;AACH,wBAAgB,kCAAkC,IAAI,YAAY,CAejE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite-plugin-create-auth-import-transform.d.ts","sourceRoot":"","sources":["../../../../src/web/vitest/vite-plugin-create-auth-import-transform.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC,wBAAgB,+BAA+B,IAAI,YAAY,CAuB9D"}
|