@cedarjs/testing 1.0.0-canary.12518 → 1.0.0-canary.12520
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.
|
@@ -49,6 +49,8 @@ module.exports = {
|
|
|
49
49
|
// @NOTE: Import @cedarjs/testing in api tests, and it automatically remaps to the api side only
|
|
50
50
|
// This is to prevent web stuff leaking into api, and vice versa
|
|
51
51
|
'^@cedarjs/testing$': path.join(NODE_MODULES_PATH, '@cedarjs/testing/api'),
|
|
52
|
+
// Support for importing files with extensions (like you'd do in ESM projects)
|
|
53
|
+
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
52
54
|
},
|
|
53
55
|
transform: {
|
|
54
56
|
'\\.[jt]sx?$': [
|
|
@@ -73,6 +73,8 @@ module.exports = {
|
|
|
73
73
|
*/
|
|
74
74
|
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|css)$':
|
|
75
75
|
'@cedarjs/testing/dist/web/fileMock.js',
|
|
76
|
+
// Support for importing files with extensions (like you'd do in ESM projects)
|
|
77
|
+
'^(\\.{1,2}/.*)\\.js$': '$1',
|
|
76
78
|
},
|
|
77
79
|
transform: {
|
|
78
80
|
'\\.[jt]sx?$': [
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
require('@testing-library/jest-dom')
|
|
4
4
|
require('whatwg-fetch')
|
|
5
5
|
|
|
6
|
-
const {
|
|
6
|
+
const {
|
|
7
|
+
findCellMocks,
|
|
8
|
+
} = require('@cedarjs/testing/dist/cjs/web/findCellMocks.js')
|
|
7
9
|
const {
|
|
8
10
|
startMSW,
|
|
9
11
|
setupRequestHandlers,
|
|
@@ -11,7 +13,7 @@ const {
|
|
|
11
13
|
mockGraphQLMutation,
|
|
12
14
|
mockGraphQLQuery,
|
|
13
15
|
mockCurrentUser,
|
|
14
|
-
} = require('@cedarjs/testing/dist/cjs/web/mockRequests')
|
|
16
|
+
} = require('@cedarjs/testing/dist/cjs/web/mockRequests.js')
|
|
15
17
|
|
|
16
18
|
global.mockGraphQLQuery = mockGraphQLQuery
|
|
17
19
|
global.mockGraphQLMutation = mockGraphQLMutation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/testing",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.12520+71a6fc8c0",
|
|
4
4
|
"description": "Tools, wrappers and configuration for testing a Cedar project.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,9 +28,15 @@
|
|
|
28
28
|
"./dist/cjs/web/findCellMocks": {
|
|
29
29
|
"default": "./dist/cjs/web/findCellMocks.js"
|
|
30
30
|
},
|
|
31
|
+
"./dist/cjs/web/findCellMocks.js": {
|
|
32
|
+
"default": "./dist/cjs/web/findCellMocks.js"
|
|
33
|
+
},
|
|
31
34
|
"./dist/cjs/web/mockRequests": {
|
|
32
35
|
"default": "./dist/cjs/web/mockRequests.js"
|
|
33
36
|
},
|
|
37
|
+
"./dist/cjs/web/mockRequests.js": {
|
|
38
|
+
"default": "./dist/cjs/web/mockRequests.js"
|
|
39
|
+
},
|
|
34
40
|
"./auth": {
|
|
35
41
|
"import": {
|
|
36
42
|
"types": "./dist/web/mockAuth.d.ts",
|
|
@@ -92,13 +98,13 @@
|
|
|
92
98
|
"test:watch": "vitest watch"
|
|
93
99
|
},
|
|
94
100
|
"dependencies": {
|
|
95
|
-
"@cedarjs/auth": "1.0.0-canary.
|
|
96
|
-
"@cedarjs/babel-config": "1.0.0-canary.
|
|
97
|
-
"@cedarjs/context": "1.0.0-canary.
|
|
98
|
-
"@cedarjs/graphql-server": "1.0.0-canary.
|
|
99
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
100
|
-
"@cedarjs/router": "1.0.0-canary.
|
|
101
|
-
"@cedarjs/web": "1.0.0-canary.
|
|
101
|
+
"@cedarjs/auth": "1.0.0-canary.12520",
|
|
102
|
+
"@cedarjs/babel-config": "1.0.0-canary.12520",
|
|
103
|
+
"@cedarjs/context": "1.0.0-canary.12520",
|
|
104
|
+
"@cedarjs/graphql-server": "1.0.0-canary.12520",
|
|
105
|
+
"@cedarjs/project-config": "1.0.0-canary.12520",
|
|
106
|
+
"@cedarjs/router": "1.0.0-canary.12520",
|
|
107
|
+
"@cedarjs/web": "1.0.0-canary.12520",
|
|
102
108
|
"@testing-library/jest-dom": "6.5.0",
|
|
103
109
|
"@testing-library/react": "14.3.1",
|
|
104
110
|
"@testing-library/user-event": "14.5.2",
|
|
@@ -116,7 +122,7 @@
|
|
|
116
122
|
"whatwg-fetch": "3.6.20"
|
|
117
123
|
},
|
|
118
124
|
"devDependencies": {
|
|
119
|
-
"@cedarjs/framework-tools": "1.0.0-canary.
|
|
125
|
+
"@cedarjs/framework-tools": "1.0.0-canary.12520",
|
|
120
126
|
"concurrently": "8.2.2",
|
|
121
127
|
"jsdom": "24.1.3",
|
|
122
128
|
"publint": "0.3.12",
|
|
@@ -124,5 +130,5 @@
|
|
|
124
130
|
"typescript": "5.6.2",
|
|
125
131
|
"vitest": "3.2.4"
|
|
126
132
|
},
|
|
127
|
-
"gitHead": "
|
|
133
|
+
"gitHead": "71a6fc8c0a8a0496c039e9392008840fdf83aa8c"
|
|
128
134
|
}
|