@cedarjs/testing 2.1.1 → 2.1.2-next.98
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.
|
@@ -30,7 +30,7 @@ interface MockedSignedWebhookParams extends Omit<BuildEventParams, 'signature' |
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @description Use this function to mock a signed webhook
|
|
33
|
-
* @see https://
|
|
33
|
+
* @see https://cedarjs.com/docs/webhooks#webhooks
|
|
34
34
|
**/
|
|
35
35
|
export declare const mockSignedWebhook: ({ payload, signatureType, signatureHeader, secret, ...others }: MockedSignedWebhookParams) => APIGatewayProxyEvent;
|
|
36
36
|
export {};
|
package/dist/cache/index.js
CHANGED
|
@@ -57,7 +57,7 @@ const _isKVPair = (keyOrCachedValue, cachedValue) => {
|
|
|
57
57
|
const _checkValueForKey = (cacheClient, cacheKey, expectedValue) => {
|
|
58
58
|
try {
|
|
59
59
|
const cachedStringValue = cacheClient.storage[cacheKey]?.value;
|
|
60
|
-
const expectedValueOrMatcher = expectedValue?.$$typeof === Symbol.for("jest.asymmetricMatcher") ? expectedValue : JSON.parse(JSON.stringify(expectedValue));
|
|
60
|
+
const expectedValueOrMatcher = expectedValue?.$$typeof === /* @__PURE__ */ Symbol.for("jest.asymmetricMatcher") ? expectedValue : JSON.parse(JSON.stringify(expectedValue));
|
|
61
61
|
expect(
|
|
62
62
|
cachedStringValue ? JSON.parse(cachedStringValue) : void 0
|
|
63
63
|
).toEqual(expectedValueOrMatcher);
|
|
@@ -30,7 +30,7 @@ interface MockedSignedWebhookParams extends Omit<BuildEventParams, 'signature' |
|
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* @description Use this function to mock a signed webhook
|
|
33
|
-
* @see https://
|
|
33
|
+
* @see https://cedarjs.com/docs/webhooks#webhooks
|
|
34
34
|
**/
|
|
35
35
|
export declare const mockSignedWebhook: ({ payload, signatureType, signatureHeader, secret, ...others }: MockedSignedWebhookParams) => APIGatewayProxyEvent;
|
|
36
36
|
export {};
|
package/dist/cjs/cache/index.js
CHANGED
|
@@ -80,7 +80,7 @@ const _isKVPair = (keyOrCachedValue, cachedValue) => {
|
|
|
80
80
|
const _checkValueForKey = (cacheClient, cacheKey, expectedValue) => {
|
|
81
81
|
try {
|
|
82
82
|
const cachedStringValue = cacheClient.storage[cacheKey]?.value;
|
|
83
|
-
const expectedValueOrMatcher = expectedValue?.$$typeof === Symbol.for("jest.asymmetricMatcher") ? expectedValue : JSON.parse(JSON.stringify(expectedValue));
|
|
83
|
+
const expectedValueOrMatcher = expectedValue?.$$typeof === /* @__PURE__ */ Symbol.for("jest.asymmetricMatcher") ? expectedValue : JSON.parse(JSON.stringify(expectedValue));
|
|
84
84
|
expect(
|
|
85
85
|
cachedStringValue ? JSON.parse(cachedStringValue) : void 0
|
|
86
86
|
).toEqual(expectedValueOrMatcher);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/testing",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2-next.98+b533fd309",
|
|
4
4
|
"description": "Tools, wrappers and configuration for testing a Cedar project.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -119,21 +119,21 @@
|
|
|
119
119
|
"test:watch": "vitest watch"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@cedarjs/auth": "2.1.
|
|
123
|
-
"@cedarjs/babel-config": "2.1.
|
|
124
|
-
"@cedarjs/context": "2.1.
|
|
125
|
-
"@cedarjs/graphql-server": "2.1.
|
|
126
|
-
"@cedarjs/project-config": "2.1.
|
|
127
|
-
"@cedarjs/router": "2.1.
|
|
128
|
-
"@cedarjs/web": "2.1.
|
|
129
|
-
"@testing-library/jest-dom": "6.
|
|
122
|
+
"@cedarjs/auth": "2.1.2-next.98+b533fd309",
|
|
123
|
+
"@cedarjs/babel-config": "2.1.2-next.98+b533fd309",
|
|
124
|
+
"@cedarjs/context": "2.1.2-next.98+b533fd309",
|
|
125
|
+
"@cedarjs/graphql-server": "2.1.2-next.98+b533fd309",
|
|
126
|
+
"@cedarjs/project-config": "2.1.2-next.98+b533fd309",
|
|
127
|
+
"@cedarjs/router": "2.1.2-next.98+b533fd309",
|
|
128
|
+
"@cedarjs/web": "2.1.2-next.98+b533fd309",
|
|
129
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
130
130
|
"@testing-library/react": "14.3.1",
|
|
131
|
-
"@testing-library/user-event": "14.
|
|
131
|
+
"@testing-library/user-event": "14.6.1",
|
|
132
132
|
"@types/aws-lambda": "8.10.159",
|
|
133
133
|
"@types/babel-core": "6.25.10",
|
|
134
134
|
"@types/jest": "29.5.14",
|
|
135
|
-
"@types/node": "24.10.
|
|
136
|
-
"ansis": "4.
|
|
135
|
+
"@types/node": "24.10.4",
|
|
136
|
+
"ansis": "4.2.0",
|
|
137
137
|
"babel-jest": "^29.7.0",
|
|
138
138
|
"fast-glob": "3.3.3",
|
|
139
139
|
"jest": "29.7.0",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"whatwg-fetch": "3.6.20"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
|
-
"@cedarjs/framework-tools": "2.1.
|
|
148
|
+
"@cedarjs/framework-tools": "2.1.2-next.98",
|
|
149
149
|
"concurrently": "8.2.2",
|
|
150
150
|
"jsdom": "24.1.3",
|
|
151
151
|
"publint": "0.3.16",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"publishConfig": {
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
|
-
"gitHead": "
|
|
167
|
+
"gitHead": "b533fd30950a22e8fa131e63272007964ce7d43a",
|
|
168
168
|
"nx": {
|
|
169
169
|
"targets": {
|
|
170
170
|
"build": {
|