@modern-js/plugin-testing 1.0.0-rc.2 → 1.0.0-rc.7

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/CHANGELOG.md ADDED
@@ -0,0 +1,74 @@
1
+ # @modern-js/plugin-testing
2
+
3
+ ## 1.0.0-rc.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 204c626: feat: initial
9
+ - Updated dependencies [224f7fe]
10
+ - Updated dependencies [204c626]
11
+ - @modern-js/core@1.0.0-rc.7
12
+ - @modern-js/webpack@1.0.0-rc.7
13
+ - @modern-js/testing@1.0.0-rc.7
14
+ - @modern-js/runtime-core@1.0.0-rc.7
15
+ - @modern-js/babel-compiler@1.0.0-rc.7
16
+ - @modern-js/utils@1.0.0-rc.7
17
+
18
+ ## 1.0.0-rc.6
19
+
20
+ ### Patch Changes
21
+
22
+ - 224f7fe: fix server route match
23
+ - 204c626: feat: initial
24
+ - Updated dependencies [224f7fe]
25
+ - Updated dependencies [204c626]
26
+ - @modern-js/core@1.0.0-rc.6
27
+ - @modern-js/webpack@1.0.0-rc.6
28
+ - @modern-js/testing@1.0.0-rc.6
29
+ - @modern-js/runtime-core@1.0.0-rc.6
30
+ - @modern-js/babel-compiler@1.0.0-rc.6
31
+ - @modern-js/utils@1.0.0-rc.6
32
+
33
+ ## 1.0.0-rc.5
34
+
35
+ ### Patch Changes
36
+
37
+ - 224f7fe: fix server route match
38
+ - 204c626: feat: initial
39
+ - Updated dependencies [224f7fe]
40
+ - Updated dependencies [204c626]
41
+ - @modern-js/core@1.0.0-rc.5
42
+ - @modern-js/webpack@1.0.0-rc.5
43
+ - @modern-js/testing@1.0.0-rc.5
44
+ - @modern-js/runtime-core@1.0.0-rc.5
45
+ - @modern-js/babel-compiler@1.0.0-rc.5
46
+ - @modern-js/utils@1.0.0-rc.5
47
+
48
+ ## 1.0.0-rc.4
49
+
50
+ ### Patch Changes
51
+
52
+ - fix server route match
53
+ - 204c626: feat: initial
54
+ - Updated dependencies [undefined]
55
+ - Updated dependencies [204c626]
56
+ - @modern-js/core@1.0.0-rc.4
57
+ - @modern-js/webpack@1.0.0-rc.4
58
+ - @modern-js/testing@1.0.0-rc.4
59
+ - @modern-js/runtime-core@1.0.0-rc.4
60
+ - @modern-js/babel-compiler@1.0.0-rc.4
61
+ - @modern-js/utils@1.0.0-rc.4
62
+
63
+ ## 1.0.0-rc.3
64
+
65
+ ### Patch Changes
66
+
67
+ - feat: initial
68
+ - Updated dependencies [undefined]
69
+ - @modern-js/core@1.0.0-rc.3
70
+ - @modern-js/webpack@1.0.0-rc.3
71
+ - @modern-js/testing@1.0.0-rc.3
72
+ - @modern-js/babel-compiler@1.0.0-rc.3
73
+ - @modern-js/utils@1.0.0-rc.3
74
+ - @modern-js/runtime-core@1.0.0-rc.3
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  <p align="center">
3
- <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs.png" width="300" alt="Modern.js Logo" /></a>
3
+ <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a>
4
4
  </p>
5
5
 
6
6
  <p align="center">现代 Web 工程体系</p>
@@ -1,2 +1,3 @@
1
1
  import '@testing-library/jest-dom/extend-expect';
2
+ import '@testing-library/jest-dom';
2
3
  export * from "./runtime-testing";
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
 
7
7
  require("@testing-library/jest-dom/extend-expect");
8
8
 
9
+ require("@testing-library/jest-dom");
10
+
9
11
  var _runtimeTesting = require("./runtime-testing");
10
12
 
11
13
  Object.keys(_runtimeTesting).forEach(function (key) {
@@ -1,3 +1,5 @@
1
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
2
+
1
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
4
 
3
5
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -11,8 +13,8 @@ export default createPlugin(function () {
11
13
  return {
12
14
  commands: function commands(_ref) {
13
15
  var program = _ref.program;
14
- program.command('test').allowUnknownOption().usage('[options]').action( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
15
- return regeneratorRuntime.wrap(function _callee$(_context) {
16
+ program.command('test').allowUnknownOption().usage('[options]').action( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
17
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
16
18
  while (1) {
17
19
  switch (_context.prev = _context.next) {
18
20
  case 0:
@@ -1,3 +1,5 @@
1
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
2
+
1
3
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
4
 
3
5
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -23,10 +25,10 @@ import { getWebpackConfig, WebpackConfigTarget } from '@modern-js/webpack'; // i
23
25
  import modernTestPlugin from "./plugins/modern";
24
26
 
25
27
  var test = /*#__PURE__*/function () {
26
- var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
28
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
27
29
  var _useResolvedConfigCon, userConfig, _useAppContext, config, webpackConfigs, runtimeExportsPath;
28
30
 
29
- return regeneratorRuntime.wrap(function _callee$(_context) {
31
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
30
32
  while (1) {
31
33
  switch (_context.prev = _context.next) {
32
34
  case 0:
@@ -1,2 +1,3 @@
1
1
  import '@testing-library/jest-dom/extend-expect';
2
+ import '@testing-library/jest-dom';
2
3
  export * from "./runtime-testing";
@@ -1,2 +1,3 @@
1
1
  import '@testing-library/jest-dom/extend-expect';
2
+ import '@testing-library/jest-dom';
2
3
  export * from './runtime-testing';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/plugin-testing",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.7",
4
4
  "jsnext:source": "./src/index.ts",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/js/node/index.js",
@@ -12,30 +12,34 @@
12
12
  "dependencies": {
13
13
  "@babel/preset-env": "^7.15.6",
14
14
  "@babel/runtime": "^7",
15
- "@modern-js/babel-compiler": "^1.0.0-rc.2",
16
- "@modern-js/core": "^1.0.0-rc.2",
17
- "@modern-js/testing": "^1.0.0-rc.2",
18
- "@modern-js/utils": "^1.0.0-rc.2",
19
- "@modern-js/webpack": "^1.0.0-rc.2",
15
+ "@modern-js/babel-compiler": "^1.0.0-rc.7",
16
+ "@modern-js/core": "^1.0.0-rc.7",
17
+ "@modern-js/testing": "^1.0.0-rc.7",
18
+ "@modern-js/utils": "^1.0.0-rc.7",
19
+ "@modern-js/webpack": "^1.0.0-rc.7",
20
20
  "@testing-library/jest-dom": "^5.14.1",
21
21
  "@testing-library/react": "^12.0.0",
22
22
  "enhanced-resolve": "^5.8.2"
23
23
  },
24
24
  "peerDependencies": {
25
- "@modern-js/runtime-core": "^1.0.0-rc.2"
25
+ "@modern-js/runtime-core": "^1.0.0-rc.7"
26
26
  },
27
27
  "devDependencies": {
28
- "@modern-js/runtime-core": "^1.0.0-rc.2",
28
+ "@modern-js/runtime-core": "^1.0.0-rc.7",
29
29
  "@types/jest": "^26",
30
30
  "@types/node": "^14",
31
31
  "@types/react": "^17",
32
32
  "@types/react-dom": "^17",
33
33
  "typescript": "^4",
34
- "@modern-js/plugin-testing": "^1.0.0-rc.2",
35
- "@modern-js/module-tools": "^1.0.0-rc.2"
34
+ "@modern-js/plugin-testing": "^1.0.0-rc.7",
35
+ "@modern-js/module-tools": "^1.0.0-rc.7"
36
36
  },
37
37
  "sideEffects": false,
38
38
  "modernConfig": {},
39
+ "publishConfig": {
40
+ "registry": "https://registry.npmjs.org/",
41
+ "access": "public"
42
+ },
39
43
  "scripts": {
40
44
  "new": "modern new",
41
45
  "build": "modern build",
package/src/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import '@testing-library/jest-dom/extend-expect';
2
+ import '@testing-library/jest-dom';
2
3
 
3
4
  export * from './runtime-testing';