supertape 12.0.12 → 12.1.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/ChangeLog +7 -0
- package/README.md +6 -0
- package/lib/loader/css.js +20 -0
- package/lib/loader/register.js +5 -0
- package/package.json +6 -5
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
```js
|
|
29
29
|
t.equal(error.message, 'hello world', `expected error.message to be 'hello world'`);
|
|
30
30
|
```
|
|
31
|
+
|
|
32
|
+
- ability to test files that imports css with:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
NODE_OPTIONS="--import supertape/css" tape '{bin,lib}/**/*.spec.*'
|
|
36
|
+
```
|
|
31
37
|
|
|
32
38
|
📼 **Supertape** doesn't contain:
|
|
33
39
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function resolve(specifier, context, nextResolve) {
|
|
2
|
+
if (specifier.endsWith('.css'))
|
|
3
|
+
return {
|
|
4
|
+
url: new URL(specifier, context.parentURL).href,
|
|
5
|
+
shortCircuit: true,
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
return nextResolve(specifier, context);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function load(url, context, nextLoad) {
|
|
12
|
+
if (url.endsWith('.css'))
|
|
13
|
+
return {
|
|
14
|
+
format: 'module',
|
|
15
|
+
source: 'export default {};',
|
|
16
|
+
shortCircuit: true,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
return nextLoad(url, context);
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supertape",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
5
5
|
"description": "📼 Supertape simplest high speed test runner with superpowers",
|
|
6
6
|
"homepage": "http://github.com/coderaiser/supertape",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"./bin/supertape": "./bin/supertape.js",
|
|
18
18
|
"./cli": "./lib/cli.js",
|
|
19
|
-
"./exit-codes": "./lib/exit-codes.js"
|
|
19
|
+
"./exit-codes": "./lib/exit-codes.js",
|
|
20
|
+
"./css": "./lib/loader/register.js"
|
|
20
21
|
},
|
|
21
22
|
"bin": {
|
|
22
23
|
"tape": "bin/tracer.js",
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
"cli-progress": "^3.8.2",
|
|
54
55
|
"flatted": "^3.3.1",
|
|
55
56
|
"fullstore": "^4.0.0",
|
|
56
|
-
"glob": "^
|
|
57
|
+
"glob": "^13.0.0",
|
|
57
58
|
"jest-diff": "^30.0.3",
|
|
58
59
|
"json-with-bigint": "^3.4.4",
|
|
59
60
|
"once": "^1.4.0",
|
|
@@ -75,12 +76,12 @@
|
|
|
75
76
|
],
|
|
76
77
|
"devDependencies": {
|
|
77
78
|
"@iocmd/wait": "^2.1.0",
|
|
78
|
-
"@putout/eslint-flat": "^
|
|
79
|
+
"@putout/eslint-flat": "^4.0.0",
|
|
79
80
|
"c8": "^10.1.2",
|
|
80
81
|
"check-dts": "^0.9.0",
|
|
81
82
|
"currify": "^4.0.0",
|
|
82
83
|
"eslint": "^9.1.1",
|
|
83
|
-
"eslint-plugin-putout": "^
|
|
84
|
+
"eslint-plugin-putout": "^30.0.1",
|
|
84
85
|
"find-up": "^8.0.0",
|
|
85
86
|
"madrun": "^12.1.0",
|
|
86
87
|
"montag": "^1.0.0",
|