diff --git a/package.json b/package.json index c2f86fbe..828dc870 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@changesets/cli": "^2.27.10", "@changesets/get-release-plan": "^4.0.5", "@ota-meshi/eslint-plugin": "^0.17.6", + "@ota-meshi/test-snapshot": "^1.1.0", "@types/benchmark": "^2.1.5", "@types/chai": "^5.0.0", "@types/eslint": "^9.6.1", @@ -100,7 +101,6 @@ "locate-character": "^3.0.0", "magic-string": "^0.30.14", "mocha": "^11.0.0", - "mocha-chai-jest-snapshot": "^1.1.6", "prettier": "~3.4.1", "prettier-plugin-pkg": "^0.18.1", "prettier-plugin-svelte": "^3.3.2", diff --git a/tests/src/parser/__snapshots__/html.ts.snap b/tests/src/parser/__snapshots__/html.ts.snap index 344231d9..bffe7bf1 100644 --- a/tests/src/parser/__snapshots__/html.ts.snap +++ b/tests/src/parser/__snapshots__/html.ts.snap @@ -1,4 +1,4 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP +// test-snapshot v1 exports[`parseAttributes (empty) 1`] = ` Object { @@ -106,6 +106,21 @@ Object { } `; +exports[`parseAttributes attr 1`] = ` +Object { + "attributes": Array [ + Object { + "end": 4, + "name": "attr", + "start": 0, + "type": "Attribute", + "value": true, + }, + ], + "index": 4, +} +`; + exports[`parseAttributes attr 1`] = ` Object { "attributes": Array [ @@ -144,21 +159,6 @@ Object { } `; -exports[`parseAttributes attr 1`] = ` -Object { - "attributes": Array [ - Object { - "end": 4, - "name": "attr", - "start": 0, - "type": "Attribute", - "value": true, - }, - ], - "index": 4, -} -`; - exports[`parseAttributes attr="value" 1`] = ` Object { "attributes": Array [ diff --git a/tests/src/parser/html.ts b/tests/src/parser/html.ts index 0e0cd935..1d2f2c7d 100644 --- a/tests/src/parser/html.ts +++ b/tests/src/parser/html.ts @@ -1,9 +1,9 @@ import * as chai from "chai"; -import { jestSnapshotPlugin } from "mocha-chai-jest-snapshot"; +import { chaiPlugin } from "@ota-meshi/test-snapshot/chai"; -import { parseAttributes } from "../../../src/parser/html"; +import { parseAttributes } from "../../../src/parser/html.js"; -chai.use(jestSnapshotPlugin()); +chai.use(chaiPlugin); describe("parseAttributes", () => { const testCases = [ {
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: