@describe-me/vitest 0.7.0 → 0.8.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/dist/live-page-html.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The live page before Vite's HTML transforms:
|
|
3
|
-
*
|
|
2
|
+
* The live page before Vite's HTML transforms: a rule that gives the document
|
|
3
|
+
* its iframe's color scheme, the preview head, when it is not blank, and the
|
|
4
|
+
* generated entry at `entrySrc`, which runs the test.
|
|
4
5
|
*/
|
|
5
6
|
export declare function livePageHtml(previewHead: string | undefined, entrySrc: string): string;
|
package/dist/live-page-html.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The live page before Vite's HTML transforms:
|
|
3
|
-
*
|
|
2
|
+
* The live page before Vite's HTML transforms: a rule that gives the document
|
|
3
|
+
* its iframe's color scheme, the preview head, when it is not blank, and the
|
|
4
|
+
* generated entry at `entrySrc`, which runs the test.
|
|
4
5
|
*/
|
|
5
6
|
export function livePageHtml(previewHead, entrySrc) {
|
|
6
7
|
const head = previewHead?.trim() ? [` ${previewHead.trim()}`] : [];
|
|
@@ -9,6 +10,10 @@ export function livePageHtml(previewHead, entrySrc) {
|
|
|
9
10
|
'<html lang="en">',
|
|
10
11
|
' <head>',
|
|
11
12
|
' <meta charset="utf-8">',
|
|
13
|
+
// Gives the document its iframe's scheme. The two match, so Chromium paints
|
|
14
|
+
// no opaque backdrop under the page. A copy of the rule in
|
|
15
|
+
// packages/viewer/src/replay-snapshot.ts.
|
|
16
|
+
' <style>:where(:root) { color-scheme: light dark }</style>',
|
|
12
17
|
...head,
|
|
13
18
|
' <title>describe-me live preview</title>',
|
|
14
19
|
' </head>',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@describe-me/vitest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Living component documentation from your Vitest tests: the Vitest plugin, setup files and reporter of describe-me",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vitest",
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"picomatch": "^4.0.3",
|
|
73
73
|
"std-env": "^4.0.0",
|
|
74
|
-
"@describe-me/core": "^0.
|
|
74
|
+
"@describe-me/core": "^0.8.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"vitest": "^4.0.0 || ^5.0.0",
|
|
78
78
|
"typescript": "^5.0.0 || ^6.0.0",
|
|
79
79
|
"@testing-library/user-event": "^14.0.0",
|
|
80
|
-
"describe-me": "^0.
|
|
80
|
+
"describe-me": "^0.8.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependenciesMeta": {
|
|
83
83
|
"typescript": {
|