File tree 3 files changed +20
-20
lines changed
3 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 67
67
"@changesets/cli" : " ^2.27.10" ,
68
68
"@changesets/get-release-plan" : " ^4.0.5" ,
69
69
"@ota-meshi/eslint-plugin" : " ^0.17.6" ,
70
+ "@ota-meshi/test-snapshot" : " ^1.1.0" ,
70
71
"@types/benchmark" : " ^2.1.5" ,
71
72
"@types/chai" : " ^5.0.0" ,
72
73
"@types/eslint" : " ^9.6.1" ,
100
101
"locate-character" : " ^3.0.0" ,
101
102
"magic-string" : " ^0.30.14" ,
102
103
"mocha" : " ^11.0.0" ,
103
- "mocha-chai-jest-snapshot" : " ^1.1.6" ,
104
104
"prettier" : " ~3.4.1" ,
105
105
"prettier-plugin-pkg" : " ^0.18.1" ,
106
106
"prettier-plugin-svelte" : " ^3.3.2" ,
Original file line number Diff line number Diff line change 1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // test-snapshot v1
2
2
3
3
exports [` parseAttributes (empty) 1` ] = `
4
4
Object {
@@ -106,6 +106,21 @@ Object {
106
106
}
107
107
`;
108
108
109
+ exports[`parseAttributes attr 1`] = `
110
+ Object {
111
+ " attributes" : Array [
112
+ Object {
113
+ " end" : 4 ,
114
+ " name" : " attr" ,
115
+ " start" : 0 ,
116
+ " type" : " Attribute" ,
117
+ " value" : true ,
118
+ },
119
+ ],
120
+ " index" : 4 ,
121
+ }
122
+ `;
123
+
109
124
exports[`parseAttributes attr 1`] = `
110
125
Object {
111
126
" attributes" : Array [
@@ -144,21 +159,6 @@ Object {
144
159
}
145
160
`;
146
161
147
- exports[`parseAttributes attr 1`] = `
148
- Object {
149
- " attributes" : Array [
150
- Object {
151
- " end" : 4 ,
152
- " name" : " attr" ,
153
- " start" : 0 ,
154
- " type" : " Attribute" ,
155
- " value" : true ,
156
- },
157
- ],
158
- " index" : 4 ,
159
- }
160
- `;
161
-
162
162
exports[`parseAttributes attr="value" 1`] = `
163
163
Object {
164
164
" attributes" : Array [
Original file line number Diff line number Diff line change 1
1
import * as chai from "chai" ;
2
- import { jestSnapshotPlugin } from "mocha-chai-jest- snapshot" ;
2
+ import { chaiPlugin } from "@ota-meshi/test- snapshot/chai " ;
3
3
4
- import { parseAttributes } from "../../../src/parser/html" ;
4
+ import { parseAttributes } from "../../../src/parser/html.js " ;
5
5
6
- chai . use ( jestSnapshotPlugin ( ) ) ;
6
+ chai . use ( chaiPlugin ) ;
7
7
describe ( "parseAttributes" , ( ) => {
8
8
const testCases = [
9
9
{
You can’t perform that action at this time.
0 commit comments