@codecademy/gamut-tests 5.3.0-alpha.4fa030.0 → 5.3.0-alpha.5cfa7b.0
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/dist/index.d.ts +1 -0
- package/dist/index.js +8 -7
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { setupEnzyme as setupEnzymeBase, setupRtl as setupRtlBase } from 'compon
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const MockGamutProvider: React.FC<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
+
useLogicalProperties?: boolean;
|
|
5
6
|
}>;
|
|
6
7
|
/**
|
|
7
8
|
* @deprecated Enzyme is no longer being maintained. Use RTL instead.
|
package/dist/index.js
CHANGED
|
@@ -3,16 +3,17 @@ import { setupEnzyme as setupEnzymeBase, setupRtl as setupRtlBase } from 'compon
|
|
|
3
3
|
import overArgs from 'lodash/overArgs';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
|
|
6
|
-
// See https://
|
|
6
|
+
// See https://skillsoftdev.atlassian.net/wiki/spaces/779a16d9c7ea452eab11b39cbbe771ce/pages/4441315387/Frontend+Unit+Tests for more info
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
export const MockGamutProvider =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export const MockGamutProvider = ({
|
|
9
|
+
children,
|
|
10
|
+
useLogicalProperties
|
|
11
|
+
}) => {
|
|
12
12
|
return /*#__PURE__*/_jsx(GamutProvider, {
|
|
13
|
-
useGlobals: false,
|
|
14
|
-
useCache: false,
|
|
15
13
|
theme: theme,
|
|
14
|
+
useCache: false,
|
|
15
|
+
useGlobals: false,
|
|
16
|
+
useLogicalProperties: useLogicalProperties,
|
|
16
17
|
children: children
|
|
17
18
|
});
|
|
18
19
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut-tests",
|
|
3
3
|
"description": "Shared component test setup for Gamut applications",
|
|
4
|
-
"version": "5.3.0-alpha.
|
|
4
|
+
"version": "5.3.0-alpha.5cfa7b.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-styles": "17.
|
|
7
|
+
"@codecademy/gamut-styles": "17.12.0-alpha.5cfa7b.0",
|
|
8
8
|
"component-test-setup": "*",
|
|
9
|
-
"lodash": "^4.17.
|
|
9
|
+
"lodash": "^4.17.23"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"main": "dist/index.js",
|
|
23
23
|
"module": "dist/index.js",
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"react": "^17.0.2 || ^18.
|
|
25
|
+
"react": "^17.0.2 || ^18.3.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"verify": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "98e232df10565ce248ce6bb11f32f7a2a0d16c1c"
|
|
37
37
|
}
|