@modern-js/plugin-testing 0.0.0-nightly-20231128170637 → 0.0.0-nightly-20231130170642
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/cjs/base/runJest.js
CHANGED
@@ -52,6 +52,10 @@ const buildArgv = async (rawArgv, config) => {
|
|
52
52
|
if (config) {
|
53
53
|
result.config = JSON.stringify(config);
|
54
54
|
}
|
55
|
+
if (result.u === true) {
|
56
|
+
result.updateSnapshot = true;
|
57
|
+
delete result.u;
|
58
|
+
}
|
55
59
|
return result;
|
56
60
|
};
|
57
61
|
const readResultsAndExit = (result, globalConfig) => {
|
package/dist/cjs/cli/index.js
CHANGED
@@ -77,7 +77,7 @@ const testingPlugin = () => {
|
|
77
77
|
let testingExportsUtils;
|
78
78
|
return {
|
79
79
|
commands: ({ program }) => {
|
80
|
-
program.command("test").allowUnknownOption().usage("<regexForTestFiles> --[options]").action(async () => {
|
80
|
+
program.command("test").option("-u --updateSnapshot", "use this flag to re-record snapshots").option("--watch", "watch files for changes and rerun tests related to changed files").allowUnknownOption().usage("<regexForTestFiles> --[options]").action(async () => {
|
81
81
|
await (0, import_test.default)(api);
|
82
82
|
});
|
83
83
|
},
|
package/dist/esm/base/runJest.js
CHANGED
package/dist/esm/cli/index.js
CHANGED
@@ -45,7 +45,7 @@ var testingPlugin = function() {
|
|
45
45
|
return {
|
46
46
|
commands: function(param) {
|
47
47
|
var program = param.program;
|
48
|
-
program.command("test").allowUnknownOption().usage("<regexForTestFiles> --[options]").action(/* @__PURE__ */ _async_to_generator(function() {
|
48
|
+
program.command("test").option("-u --updateSnapshot", "use this flag to re-record snapshots").option("--watch", "watch files for changes and rerun tests related to changed files").allowUnknownOption().usage("<regexForTestFiles> --[options]").action(/* @__PURE__ */ _async_to_generator(function() {
|
49
49
|
return _ts_generator(this, function(_state) {
|
50
50
|
switch (_state.label) {
|
51
51
|
case 0:
|
@@ -18,6 +18,10 @@ const buildArgv = async (rawArgv, config) => {
|
|
18
18
|
if (config) {
|
19
19
|
result.config = JSON.stringify(config);
|
20
20
|
}
|
21
|
+
if (result.u === true) {
|
22
|
+
result.updateSnapshot = true;
|
23
|
+
delete result.u;
|
24
|
+
}
|
21
25
|
return result;
|
22
26
|
};
|
23
27
|
const readResultsAndExit = (result, globalConfig) => {
|
@@ -41,7 +41,7 @@ const testingPlugin = () => {
|
|
41
41
|
let testingExportsUtils;
|
42
42
|
return {
|
43
43
|
commands: ({ program }) => {
|
44
|
-
program.command("test").allowUnknownOption().usage("<regexForTestFiles> --[options]").action(async () => {
|
44
|
+
program.command("test").option("-u --updateSnapshot", "use this flag to re-record snapshots").option("--watch", "watch files for changes and rerun tests related to changed files").allowUnknownOption().usage("<regexForTestFiles> --[options]").action(async () => {
|
45
45
|
await test(api);
|
46
46
|
});
|
47
47
|
},
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "0.0.0-nightly-
|
18
|
+
"version": "0.0.0-nightly-20231130170642",
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
21
21
|
"main": "./dist/cjs/cli/index.js",
|
@@ -131,16 +131,16 @@
|
|
131
131
|
"ts-jest": "^29.1.0",
|
132
132
|
"yargs": "^17.0.1",
|
133
133
|
"@swc/helpers": "0.5.3",
|
134
|
-
"@modern-js/
|
135
|
-
"@modern-js/plugin": "0.0.0-nightly-
|
136
|
-
"@modern-js/prod-server": "0.0.0-nightly-
|
137
|
-
"@modern-js/
|
138
|
-
"@modern-js/types": "0.0.0-nightly-
|
134
|
+
"@modern-js/babel-compiler": "0.0.0-nightly-20231130170642",
|
135
|
+
"@modern-js/plugin": "0.0.0-nightly-20231130170642",
|
136
|
+
"@modern-js/prod-server": "0.0.0-nightly-20231130170642",
|
137
|
+
"@modern-js/utils": "0.0.0-nightly-20231130170642",
|
138
|
+
"@modern-js/types": "0.0.0-nightly-20231130170642"
|
139
139
|
},
|
140
140
|
"peerDependencies": {
|
141
141
|
"react": ">=17",
|
142
142
|
"react-dom": ">=17",
|
143
|
-
"@modern-js/runtime": "0.0.0-nightly-
|
143
|
+
"@modern-js/runtime": "0.0.0-nightly-20231130170642"
|
144
144
|
},
|
145
145
|
"peerDependenciesMeta": {
|
146
146
|
"@modern-js/runtime": {
|
@@ -155,11 +155,11 @@
|
|
155
155
|
"@types/node": "^14",
|
156
156
|
"@types/yargs": "^17.0.2",
|
157
157
|
"typescript": "^5",
|
158
|
-
"@
|
159
|
-
"@modern-js/
|
160
|
-
"@modern-js/bff-core": "0.0.0-nightly-
|
161
|
-
"@scripts/
|
162
|
-
"@
|
158
|
+
"@scripts/build": "0.0.0-nightly-20231130170642",
|
159
|
+
"@modern-js/core": "0.0.0-nightly-20231130170642",
|
160
|
+
"@modern-js/bff-core": "0.0.0-nightly-20231130170642",
|
161
|
+
"@scripts/jest-config": "0.0.0-nightly-20231130170642",
|
162
|
+
"@modern-js/runtime": "0.0.0-nightly-20231130170642"
|
163
163
|
},
|
164
164
|
"sideEffects": false,
|
165
165
|
"publishConfig": {
|