@uniflowed/test 0.10.0 → 0.11.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/browser-worker.js +1 -1
- package/index.js +2 -2
- package/internal/expect.js +1 -1
- package/internal/frames.js +4 -4
- package/internal/namespace.js +2 -2
- package/package.json +3 -3
package/browser-worker.js
CHANGED
|
@@ -170,7 +170,7 @@ async function main(): Promise<void> {
|
|
|
170
170
|
return controller.command(id, method, args);
|
|
171
171
|
},
|
|
172
172
|
transform: async (id, code) => {
|
|
173
|
-
// The same three the Node loader passes (`
|
|
173
|
+
// The same three the Node loader passes (`npm/host/internal/
|
|
174
174
|
// node-hooks.js`), so a module means the same thing on both hosts.
|
|
175
175
|
// `inSourceTests` is the one that would be easy to forget and expensive
|
|
176
176
|
// to: without it `import.meta.uf.test` compiles to `void 0`, every
|
package/index.js
CHANGED
|
@@ -52,8 +52,8 @@ export { fn, spyOn } from "./internal/spy.js";
|
|
|
52
52
|
* would be claiming something uf has not earned.
|
|
53
53
|
*
|
|
54
54
|
* A namespace rather than loose named exports, because several of these names
|
|
55
|
-
* are generic enough to collide
|
|
56
|
-
*
|
|
55
|
+
* are generic enough to collide with `@uniflowed/react-testing`, which
|
|
56
|
+
* also exports a `waitFor`.
|
|
57
57
|
*/
|
|
58
58
|
export { UnsupportedError, uft } from "./internal/namespace.js";
|
|
59
59
|
|
package/internal/expect.js
CHANGED
|
@@ -753,7 +753,7 @@ function verdicts(received: mixed): {
|
|
|
753
753
|
*
|
|
754
754
|
* # Why this is not the walk in `react-testing`
|
|
755
755
|
*
|
|
756
|
-
* `
|
|
756
|
+
* `npm/react-testing/internal/queries.js` has one that looks like this
|
|
757
757
|
* and answers a different question. `exposed` asks whether the accessibility
|
|
758
758
|
* tree announces the element, so it ignores `opacity: 0` — a screen reader
|
|
759
759
|
* reads text at zero opacity, which is exactly why hiding text that way is a
|
package/internal/frames.js
CHANGED
|
@@ -29,9 +29,9 @@ export type Site = {| readonly line: number, readonly column: number |};
|
|
|
29
29
|
* report is concerned.
|
|
30
30
|
*/
|
|
31
31
|
const INTERNAL_MARKERS = [
|
|
32
|
-
"/
|
|
33
|
-
"/
|
|
34
|
-
"/
|
|
32
|
+
"/npm/test/internal/",
|
|
33
|
+
"/npm/test/worker.js",
|
|
34
|
+
"/npm/react-testing/",
|
|
35
35
|
"/@uniflowed/test/",
|
|
36
36
|
"/@uniflowed/react-testing/",
|
|
37
37
|
"node:internal/",
|
|
@@ -290,7 +290,7 @@ function sourceMapsForCallSites(): FindSourceMap | false {
|
|
|
290
290
|
* with the lookup Node's printer itself uses — `findSourceMap(file)` then
|
|
291
291
|
* `findEntry(line - 1, column - 1)`, falling back to the generated position
|
|
292
292
|
* when there is no map or no entry — so the number is the one the string would
|
|
293
|
-
* have carried. `
|
|
293
|
+
* have carried. `npm/test/registration-site.test.js` holds the two paths
|
|
294
294
|
* to that.
|
|
295
295
|
*/
|
|
296
296
|
export function callerSite(skip: (...args: $ReadOnlyArray<empty>) => mixed): Site | null | void {
|
package/internal/namespace.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
// claiming something uf has not earned.
|
|
9
9
|
//
|
|
10
10
|
// A namespace rather than loose named exports, because several of these names
|
|
11
|
-
// are generic enough to collide in a test file:
|
|
12
|
-
//
|
|
11
|
+
// are generic enough to collide in a test file: this package and
|
|
12
|
+
// `@uniflowed/react-testing` both have a `waitFor`.
|
|
13
13
|
//
|
|
14
14
|
// `uft` rather than `uf`, and rather than `uf.test`. A bare `uf` is the command
|
|
15
15
|
// and the project, and a test file would be using the name for something much
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniflowed/test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "The test API and worker for `uf test`: describe/it, a full matcher set, and the process uf fans test files out to.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/ubugeeei-prod/uf.git",
|
|
11
|
-
"directory": "
|
|
11
|
+
"directory": "npm/test"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"!*.test.js"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@uniflowed/host": "0.
|
|
41
|
+
"@uniflowed/host": "0.11.0",
|
|
42
42
|
"pixelmatch": "^7.1.0",
|
|
43
43
|
"pngjs": "^7.0.0"
|
|
44
44
|
},
|