|
46 | 46 | "ci:test": "npm run lint-config && npm run lint && npm run cover",
|
47 | 47 | "commit-msg": "commitlint --edit",
|
48 | 48 | "cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
|
49 |
| - "debug": "NODE_ENV=debug npm run test -- -st --fail-fast", |
| 49 | + "debug": "NODE_ENV=debug npm test -- -- -- -st --fail-fast", |
50 | 50 | "dev": "npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast",
|
51 | 51 | "install-hooks": "husky install",
|
52 | 52 | "lint": "xo",
|
|
59 | 59 | "prepare": "npm run build",
|
60 | 60 | "prepublishOnly": "pinst --disable",
|
61 | 61 | "release": "np --message ':hatching_chick: release: Bumping to v%s.'",
|
62 |
| - "test": "ava" |
| 62 | + "test": "npm run test:src", |
| 63 | + "test-cmd": "ava", |
| 64 | + "test:cjs": "IMPORT_MAP_PATH=test/import-maps/dist/index.json npm run test-cmd", |
| 65 | + "test:dist": "npm run test:modern && npm run test:module && npm run test:cjs", |
| 66 | + "test:modern": "IMPORT_MAP_PATH=test/import-maps/dist/index.modern.json npm run test-cmd", |
| 67 | + "test:module": "IMPORT_MAP_PATH=test/import-maps/dist/index.module.json npm run test-cmd", |
| 68 | + "test:src": "IMPORT_MAP_PATH=test/import-maps/src/index.json npm run test-cmd" |
63 | 69 | },
|
64 | 70 | "dependencies": {},
|
65 | 71 | "devDependencies": {
|
|
68 | 74 | "@babel/register": "7.16.0",
|
69 | 75 | "@commitlint/cli": "15.0.0",
|
70 | 76 | "@js-library/commitlint-config": "0.0.4",
|
71 |
| - "ava": "3.15.0", |
| 77 | + "@node-loader/import-maps": "^1.0.3", |
| 78 | + "ava": "^4.0.0-rc.1", |
72 | 79 | "babel-plugin-transform-remove-console": "6.9.4",
|
73 | 80 | "babel-plugin-unassert": "3.2.0",
|
74 | 81 | "babel-preset-power-assert": "3.0.0",
|
|
93 | 100 | "test/src/**/*"
|
94 | 101 | ],
|
95 | 102 | "require": [
|
96 |
| - "regenerator-runtime/runtime", |
97 |
| - "@babel/register" |
| 103 | + "regenerator-runtime/runtime" |
| 104 | + ], |
| 105 | + "nodeArguments": [ |
| 106 | + "--experimental-loader=@node-loader/import-maps" |
98 | 107 | ],
|
99 | 108 | "timeout": "1m"
|
100 | 109 | },
|
|
0 commit comments