diff --git a/package.json b/package.json index d7b30650ac..103d9314b4 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "@jsenv/monorepo": "0.0.4", "@jsenv/performance-impact": "4.2.0", "@jsenv/plugin-as-js-classic": "./packages/related/plugin-as-js-classic/", - "@jsenv/snapshots": "./packages/independent/snapshots/", + "@jsenv/snapshot": "./packages/independent/snapshot/", "@jsenv/test": "./packages/related/test/", "babel-plugin-transform-async-to-promises": "0.8.18", "eslint": "8.54.0", diff --git a/packages/independent/service-worker/tests/errors/errors.test.mjs b/packages/independent/service-worker/tests/errors/errors.test.mjs index 311bb78f7a..840783f185 100644 --- a/packages/independent/service-worker/tests/errors/errors.test.mjs +++ b/packages/independent/service-worker/tests/errors/errors.test.mjs @@ -1,4 +1,4 @@ -import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshots"; +import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshot"; // https certificate not trusted on CI, see https://github.com/jsenv/https-local/issues/9 if (!process.env.CI) { diff --git a/packages/independent/service-worker/tests/update/update.test.mjs b/packages/independent/service-worker/tests/update/update.test.mjs index e7b5dc8436..82bf4bdaac 100644 --- a/packages/independent/service-worker/tests/update/update.test.mjs +++ b/packages/independent/service-worker/tests/update/update.test.mjs @@ -1,4 +1,4 @@ -import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshots"; +import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshot"; // https certificate not trusted on CI, see https://github.com/jsenv/https-local/issues/9 if (!process.env.CI) { diff --git a/packages/independent/snapshots/README.md b/packages/independent/snapshot/README.md similarity index 81% rename from packages/independent/snapshots/README.md rename to packages/independent/snapshot/README.md index e19624a2b9..968ce08c4e 100644 --- a/packages/independent/snapshots/README.md +++ b/packages/independent/snapshot/README.md @@ -1,4 +1,4 @@ -# snapshots [![npm package](https://img.shields.io/npm/v/@jsenv/snapshots.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/snapshots) +# snapshots [![npm package](https://img.shields.io/npm/v/@jsenv/snapshot.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/snapshot) ## takeDirectorySnapshot @@ -16,7 +16,7 @@ project/ ``` ```js -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; takeDirectorySnapshot( new URL("./dist/", import.meta.url), diff --git a/packages/independent/snapshots/package.json b/packages/independent/snapshot/package.json similarity index 86% rename from packages/independent/snapshots/package.json rename to packages/independent/snapshot/package.json index d8d5d64fe3..bb7ae87108 100644 --- a/packages/independent/snapshots/package.json +++ b/packages/independent/snapshot/package.json @@ -1,7 +1,7 @@ { - "name": "@jsenv/snapshots", + "name": "@jsenv/snapshot", "version": "1.0.0", - "description": "Snapshots testing", + "description": "Snapshot testing", "license": "MIT", "author": { "name": "dmail", @@ -11,7 +11,7 @@ "repository": { "type": "git", "url": "https://github.com/jsenv/core", - "directory": "packages/independent/snapshots" + "directory": "packages/independent/snapshot" }, "engines": { "node": ">=20.0.0" diff --git a/packages/independent/snapshots/scripts/test.mjs b/packages/independent/snapshot/scripts/test.mjs similarity index 100% rename from packages/independent/snapshots/scripts/test.mjs rename to packages/independent/snapshot/scripts/test.mjs diff --git a/packages/independent/snapshots/src/directory_content.js b/packages/independent/snapshot/src/directory_content.js similarity index 100% rename from packages/independent/snapshots/src/directory_content.js rename to packages/independent/snapshot/src/directory_content.js diff --git a/packages/independent/snapshots/src/directory_snapshot.js b/packages/independent/snapshot/src/directory_snapshot.js similarity index 100% rename from packages/independent/snapshots/src/directory_snapshot.js rename to packages/independent/snapshot/src/directory_snapshot.js diff --git a/packages/independent/snapshots/src/file_content.js b/packages/independent/snapshot/src/file_content.js similarity index 100% rename from packages/independent/snapshots/src/file_content.js rename to packages/independent/snapshot/src/file_content.js diff --git a/packages/independent/snapshots/src/file_content_assertion.js b/packages/independent/snapshot/src/file_content_assertion.js similarity index 100% rename from packages/independent/snapshots/src/file_content_assertion.js rename to packages/independent/snapshot/src/file_content_assertion.js diff --git a/packages/independent/snapshots/src/file_snapshot.js b/packages/independent/snapshot/src/file_snapshot.js similarity index 100% rename from packages/independent/snapshots/src/file_snapshot.js rename to packages/independent/snapshot/src/file_snapshot.js diff --git a/packages/independent/snapshots/src/line_break_unix.js b/packages/independent/snapshot/src/line_break_unix.js similarity index 100% rename from packages/independent/snapshots/src/line_break_unix.js rename to packages/independent/snapshot/src/line_break_unix.js diff --git a/packages/independent/snapshots/src/main.js b/packages/independent/snapshot/src/main.js similarity index 100% rename from packages/independent/snapshots/src/main.js rename to packages/independent/snapshot/src/main.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/first_run/first_run.test.mjs b/packages/independent/snapshot/tests/directory_snapshot/first_run/first_run.test.mjs similarity index 98% rename from packages/independent/snapshots/tests/directory_snapshot/first_run/first_run.test.mjs rename to packages/independent/snapshot/tests/directory_snapshot/first_run/first_run.test.mjs index eb7a4a5714..566e30a85e 100644 --- a/packages/independent/snapshots/tests/directory_snapshot/first_run/first_run.test.mjs +++ b/packages/independent/snapshot/tests/directory_snapshot/first_run/first_run.test.mjs @@ -1,7 +1,7 @@ import { assert } from "@jsenv/assert"; import { removeEntry } from "@jsenv/filesystem"; -import { takeDirectorySnapshot, readDirectoryContent } from "@jsenv/snapshots"; +import { takeDirectorySnapshot, readDirectoryContent } from "@jsenv/snapshot"; const sourceDirectoryUrl = new URL("./source/", import.meta.url); const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/directory_snapshot/first_run/source/a.js b/packages/independent/snapshot/tests/directory_snapshot/first_run/source/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/first_run/source/a.js rename to packages/independent/snapshot/tests/directory_snapshot/first_run/source/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/first_run/source/b.js b/packages/independent/snapshot/tests/directory_snapshot/first_run/source/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/first_run/source/b.js rename to packages/independent/snapshot/tests/directory_snapshot/first_run/source/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/first_run/source/file.txt b/packages/independent/snapshot/tests/directory_snapshot/first_run/source/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/first_run/source/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/first_run/source/file.txt diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/run_extra_file.test.mjs b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/run_extra_file.test.mjs similarity index 97% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/run_extra_file.test.mjs rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/run_extra_file.test.mjs index 01ace2f1f2..4944a97588 100644 --- a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/run_extra_file.test.mjs +++ b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/run_extra_file.test.mjs @@ -4,7 +4,7 @@ import { takeDirectorySnapshot, readDirectoryContent, writeDirectoryContent, -} from "@jsenv/snapshots"; +} from "@jsenv/snapshot"; const sourceDirectoryUrl = new URL("./source/", import.meta.url); const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/snapshots/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/snapshots/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/snapshots/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/snapshots/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/snapshots/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/snapshots/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/snapshots/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/snapshots/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/file.txt b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/file.txt diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/hello.js b/packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/hello.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_extra_file/source/hello.js rename to packages/independent/snapshot/tests/directory_snapshot/run_extra_file/source/hello.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/run_missing_file.test.mjs b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/run_missing_file.test.mjs similarity index 97% rename from packages/independent/snapshots/tests/directory_snapshot/run_missing_file/run_missing_file.test.mjs rename to packages/independent/snapshot/tests/directory_snapshot/run_missing_file/run_missing_file.test.mjs index 1e133aae51..e5cf9e586c 100644 --- a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/run_missing_file.test.mjs +++ b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/run_missing_file.test.mjs @@ -4,7 +4,7 @@ import { takeDirectorySnapshot, readDirectoryContent, writeDirectoryContent, -} from "@jsenv/snapshots"; +} from "@jsenv/snapshot"; const sourceDirectoryUrl = new URL("./source/", import.meta.url); const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/snapshots/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/snapshots/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_missing_file/snapshots/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_missing_file/snapshots/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/snapshots/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/snapshots/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_missing_file/snapshots/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_missing_file/snapshots/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/snapshots/file.txt b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/snapshots/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_missing_file/snapshots/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/run_missing_file/snapshots/file.txt diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/source/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/source/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_missing_file/source/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_missing_file/source/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_missing_file/source/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_missing_file/source/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_missing_file/source/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_missing_file/source/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/run_ok.test.mjs b/packages/independent/snapshot/tests/directory_snapshot/run_ok/run_ok.test.mjs similarity index 78% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/run_ok.test.mjs rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/run_ok.test.mjs index cd410ed771..3495b11700 100644 --- a/packages/independent/snapshots/tests/directory_snapshot/run_ok/run_ok.test.mjs +++ b/packages/independent/snapshot/tests/directory_snapshot/run_ok/run_ok.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; const sourceDirectoryUrl = new URL("./source/", import.meta.url); const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/snapshots/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_ok/snapshots/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/snapshots/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/snapshots/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/snapshots/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_ok/snapshots/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/snapshots/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/snapshots/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/snapshots/file.txt b/packages/independent/snapshot/tests/directory_snapshot/run_ok/snapshots/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/snapshots/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/snapshots/file.txt diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/source/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_ok/source/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/source/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/source/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/source/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_ok/source/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/source/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/source/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_ok/source/file.txt b/packages/independent/snapshot/tests/directory_snapshot/run_ok/source/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_ok/source/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/run_ok/source/file.txt diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/run_unexpected_file_content.test.mjs b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/run_unexpected_file_content.test.mjs similarity index 97% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/run_unexpected_file_content.test.mjs rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/run_unexpected_file_content.test.mjs index a3d994fe8f..9eb86766f5 100644 --- a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/run_unexpected_file_content.test.mjs +++ b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/run_unexpected_file_content.test.mjs @@ -4,7 +4,7 @@ import { takeDirectorySnapshot, readDirectoryContent, writeDirectoryContent, -} from "@jsenv/snapshots"; +} from "@jsenv/snapshot"; const sourceDirectoryUrl = new URL("./source/", import.meta.url); const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/snapshots/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/snapshots/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/snapshots/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/snapshots/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/snapshots/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/snapshots/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/snapshots/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/snapshots/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/snapshots/file.txt b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/snapshots/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/snapshots/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/snapshots/file.txt diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/source/a.js b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/source/a.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/source/a.js rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/source/a.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/source/b.js b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/source/b.js similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/source/b.js rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/source/b.js diff --git a/packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/source/file.txt b/packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/source/file.txt similarity index 100% rename from packages/independent/snapshots/tests/directory_snapshot/run_unexpected_file_content/source/file.txt rename to packages/independent/snapshot/tests/directory_snapshot/run_unexpected_file_content/source/file.txt diff --git a/packages/independent/snapshots/tests/taken_by_function/first_run/first_run.test.mjs b/packages/independent/snapshot/tests/taken_by_function/first_run/first_run.test.mjs similarity index 96% rename from packages/independent/snapshots/tests/taken_by_function/first_run/first_run.test.mjs rename to packages/independent/snapshot/tests/taken_by_function/first_run/first_run.test.mjs index 2745fd8f85..b357fa3fc4 100644 --- a/packages/independent/snapshots/tests/taken_by_function/first_run/first_run.test.mjs +++ b/packages/independent/snapshot/tests/taken_by_function/first_run/first_run.test.mjs @@ -5,7 +5,7 @@ import { assertSnapshotDirectoryTakenByFunction, writeDirectoryContent, readDirectoryContent, -} from "@jsenv/snapshots"; +} from "@jsenv/snapshot"; const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/taken_by_function/first_run_no_file/first_run_no_file.test.mjs b/packages/independent/snapshot/tests/taken_by_function/first_run_no_file/first_run_no_file.test.mjs similarity index 97% rename from packages/independent/snapshots/tests/taken_by_function/first_run_no_file/first_run_no_file.test.mjs rename to packages/independent/snapshot/tests/taken_by_function/first_run_no_file/first_run_no_file.test.mjs index 58710dc7d9..24d89014ed 100644 --- a/packages/independent/snapshots/tests/taken_by_function/first_run_no_file/first_run_no_file.test.mjs +++ b/packages/independent/snapshot/tests/taken_by_function/first_run_no_file/first_run_no_file.test.mjs @@ -1,6 +1,6 @@ import { assert } from "@jsenv/assert"; -import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshots"; +import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshot"; const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/taken_by_function/run_ok/run_ok.test.mjs b/packages/independent/snapshot/tests/taken_by_function/run_ok/run_ok.test.mjs similarity index 92% rename from packages/independent/snapshots/tests/taken_by_function/run_ok/run_ok.test.mjs rename to packages/independent/snapshot/tests/taken_by_function/run_ok/run_ok.test.mjs index f2919b4b73..6057336bd1 100644 --- a/packages/independent/snapshots/tests/taken_by_function/run_ok/run_ok.test.mjs +++ b/packages/independent/snapshot/tests/taken_by_function/run_ok/run_ok.test.mjs @@ -1,7 +1,7 @@ import { assertSnapshotDirectoryTakenByFunction, writeDirectoryContent, -} from "@jsenv/snapshots"; +} from "@jsenv/snapshot"; const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); diff --git a/packages/independent/snapshots/tests/taken_by_function/run_ok/snapshots/a.js b/packages/independent/snapshot/tests/taken_by_function/run_ok/snapshots/a.js similarity index 100% rename from packages/independent/snapshots/tests/taken_by_function/run_ok/snapshots/a.js rename to packages/independent/snapshot/tests/taken_by_function/run_ok/snapshots/a.js diff --git a/packages/independent/snapshots/tests/taken_by_function/run_unexpected_file_content/run_unexpected_file_content.test.mjs b/packages/independent/snapshot/tests/taken_by_function/run_unexpected_file_content/run_unexpected_file_content.test.mjs similarity index 97% rename from packages/independent/snapshots/tests/taken_by_function/run_unexpected_file_content/run_unexpected_file_content.test.mjs rename to packages/independent/snapshot/tests/taken_by_function/run_unexpected_file_content/run_unexpected_file_content.test.mjs index e3bebf9c22..ee39b25f2c 100644 --- a/packages/independent/snapshots/tests/taken_by_function/run_unexpected_file_content/run_unexpected_file_content.test.mjs +++ b/packages/independent/snapshot/tests/taken_by_function/run_unexpected_file_content/run_unexpected_file_content.test.mjs @@ -4,7 +4,7 @@ import { assertSnapshotDirectoryTakenByFunction, readDirectoryContent, writeDirectoryContent, -} from "@jsenv/snapshots"; +} from "@jsenv/snapshot"; const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url); const contentBeforeTest = readDirectoryContent(snapshotsDirectoryUrl); diff --git a/packages/independent/snapshots/tests/taken_by_function/run_unexpected_file_content/snapshots/a.js b/packages/independent/snapshot/tests/taken_by_function/run_unexpected_file_content/snapshots/a.js similarity index 100% rename from packages/independent/snapshots/tests/taken_by_function/run_unexpected_file_content/snapshots/a.js rename to packages/independent/snapshot/tests/taken_by_function/run_unexpected_file_content/snapshots/a.js diff --git a/packages/internal/plugin-bundling/tests/chunks_vendors/chunks_vendors.test.mjs b/packages/internal/plugin-bundling/tests/chunks_vendors/chunks_vendors.test.mjs index 3dd5523984..8d5cdbd640 100644 --- a/packages/internal/plugin-bundling/tests/chunks_vendors/chunks_vendors.test.mjs +++ b/packages/internal/plugin-bundling/tests/chunks_vendors/chunks_vendors.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; const test = async ({ name, ...params }) => { diff --git a/packages/internal/plugin-supervisor/tests/html_supervisor_snapshots.mjs b/packages/internal/plugin-supervisor/tests/html_supervisor_snapshots.mjs index ceda0e18ce..40e0adff84 100644 --- a/packages/internal/plugin-supervisor/tests/html_supervisor_snapshots.mjs +++ b/packages/internal/plugin-supervisor/tests/html_supervisor_snapshots.mjs @@ -1,7 +1,7 @@ import { readFileSync } from "node:fs"; import { urlToRelativeUrl } from "@jsenv/urls"; import { comparePathnames } from "@jsenv/filesystem"; -import { writeDirectoryContent } from "@jsenv/snapshots"; +import { writeDirectoryContent } from "@jsenv/snapshot"; import { injectSupervisorIntoHTML } from "@jsenv/plugin-supervisor"; diff --git a/packages/related/plugin-as-js-classic/tests/as_js_classic/as_js_classic_build.test.mjs b/packages/related/plugin-as-js-classic/tests/as_js_classic/as_js_classic_build.test.mjs index f908f5bc0f..3372a528bc 100644 --- a/packages/related/plugin-as-js-classic/tests/as_js_classic/as_js_classic_build.test.mjs +++ b/packages/related/plugin-as-js-classic/tests/as_js_classic/as_js_classic_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/plugin-as-js-classic/tests/as_js_classic_2/as_js_classic_2_build.test.mjs b/packages/related/plugin-as-js-classic/tests/as_js_classic_2/as_js_classic_2_build.test.mjs index 4fb80e70e1..329555055a 100644 --- a/packages/related/plugin-as-js-classic/tests/as_js_classic_2/as_js_classic_2_build.test.mjs +++ b/packages/related/plugin-as-js-classic/tests/as_js_classic_2/as_js_classic_2_build.test.mjs @@ -1,5 +1,5 @@ import { readFileSync, writeFileSync } from "node:fs"; -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/plugin-as-js-classic/tests/as_js_classic_and_fallback/as_js_classic_and_fallback_build.test.mjs b/packages/related/plugin-as-js-classic/tests/as_js_classic_and_fallback/as_js_classic_and_fallback_build.test.mjs index d59bd8cca7..e98b906c43 100644 --- a/packages/related/plugin-as-js-classic/tests/as_js_classic_and_fallback/as_js_classic_and_fallback_build.test.mjs +++ b/packages/related/plugin-as-js-classic/tests/as_js_classic_and_fallback/as_js_classic_and_fallback_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/plugin-as-js-classic/tests/as_js_classic_dynamic_import/as_js_classic_dynamic_import_build.test.mjs b/packages/related/plugin-as-js-classic/tests/as_js_classic_dynamic_import/as_js_classic_dynamic_import_build.test.mjs index e4fd244bdf..c7c64fc3c1 100644 --- a/packages/related/plugin-as-js-classic/tests/as_js_classic_dynamic_import/as_js_classic_dynamic_import_build.test.mjs +++ b/packages/related/plugin-as-js-classic/tests/as_js_classic_dynamic_import/as_js_classic_dynamic_import_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_build.test.mjs b/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_build.test.mjs index 7e6c2bdfc6..8a32442699 100644 --- a/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_build.test.mjs +++ b/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; import { jsenvPluginAsJsClassic } from "@jsenv/plugin-as-js-classic"; diff --git a/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_dev.test.mjs b/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_dev.test.mjs index 7c3a308a89..a84c8e826b 100644 --- a/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_dev.test.mjs +++ b/packages/related/plugin-as-js-classic/tests/as_js_classic_inline/as_js_classic_inline_dev.test.mjs @@ -1,5 +1,5 @@ import { chromium } from "playwright"; -import { takeFileSnapshot } from "@jsenv/snapshots"; +import { takeFileSnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { startDevServer } from "@jsenv/core"; diff --git a/packages/related/plugin-preact/tests/preact_and_redux/preact_and_redux_build.test.mjs b/packages/related/plugin-preact/tests/preact_and_redux/preact_and_redux_build.test.mjs index 2118045a2c..dd9587694c 100644 --- a/packages/related/plugin-preact/tests/preact_and_redux/preact_and_redux_build.test.mjs +++ b/packages/related/plugin-preact/tests/preact_and_redux/preact_and_redux_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { ensureEmptyDirectory } from "@jsenv/filesystem"; import { build } from "@jsenv/core"; diff --git a/packages/related/plugin-preact/tests/preact_build/preact_build.test.mjs b/packages/related/plugin-preact/tests/preact_build/preact_build.test.mjs index 64fb8644e5..5545cef4d6 100644 --- a/packages/related/plugin-preact/tests/preact_build/preact_build.test.mjs +++ b/packages/related/plugin-preact/tests/preact_build/preact_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/plugin-preact/tests/script_module_jsx/script_module_jsx_build.test.mjs b/packages/related/plugin-preact/tests/script_module_jsx/script_module_jsx_build.test.mjs index bf4d2f80ff..5023c1c140 100644 --- a/packages/related/plugin-preact/tests/script_module_jsx/script_module_jsx_build.test.mjs +++ b/packages/related/plugin-preact/tests/script_module_jsx/script_module_jsx_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/plugin-react/tests/react_build/react_build.test.mjs b/packages/related/plugin-react/tests/react_build/react_build.test.mjs index 6ce30396da..117ec23067 100644 --- a/packages/related/plugin-react/tests/react_build/react_build.test.mjs +++ b/packages/related/plugin-react/tests/react_build/react_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; import { startFileServer } from "@jsenv/core/tests/start_file_server.js"; diff --git a/packages/related/test/tests/execution_logs/execution_logs_snapshots.mjs b/packages/related/test/tests/execution_logs/execution_logs_snapshots.mjs index a8b19dade7..2b564655b4 100644 --- a/packages/related/test/tests/execution_logs/execution_logs_snapshots.mjs +++ b/packages/related/test/tests/execution_logs/execution_logs_snapshots.mjs @@ -1,5 +1,5 @@ import stripAnsi from "strip-ansi"; -import { writeDirectoryContent } from "@jsenv/snapshots"; +import { writeDirectoryContent } from "@jsenv/snapshot"; import { createExecutionLog } from "@jsenv/test/src/execution/logs_file_execution.js"; diff --git a/packages/related/test/tests/execution_logs/execution_logs_test.mjs b/packages/related/test/tests/execution_logs/execution_logs_test.mjs index afb310a9ba..475820ef1b 100644 --- a/packages/related/test/tests/execution_logs/execution_logs_test.mjs +++ b/packages/related/test/tests/execution_logs/execution_logs_test.mjs @@ -1,4 +1,4 @@ -import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshots"; +import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshot"; assertSnapshotDirectoryTakenByFunction( new URL("./snapshots/", import.meta.url), diff --git a/tests/__internal__/html_injection/html_injection_snapshots.mjs b/tests/__internal__/html_injection/html_injection_snapshots.mjs index 8dfc3a65f0..111ad7e8c9 100644 --- a/tests/__internal__/html_injection/html_injection_snapshots.mjs +++ b/tests/__internal__/html_injection/html_injection_snapshots.mjs @@ -1,6 +1,6 @@ import { readFileSync } from "node:fs"; -import { writeDirectoryContent } from "@jsenv/snapshots"; +import { writeDirectoryContent } from "@jsenv/snapshot"; import { urlToRelativeUrl } from "@jsenv/urls"; import { comparePathnames } from "@jsenv/filesystem"; diff --git a/tests/build/babel_helper_shared/babel_helper_shared.test.mjs b/tests/build/babel_helper_shared/babel_helper_shared.test.mjs index bafb17cd63..2d802e17f0 100644 --- a/tests/build/babel_helper_shared/babel_helper_shared.test.mjs +++ b/tests/build/babel_helper_shared/babel_helper_shared.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/basics/script_type_module_basic/script_type_module_basic.test.mjs b/tests/build/basics/script_type_module_basic/script_type_module_basic.test.mjs index 121a716919..21de407ce0 100644 --- a/tests/build/basics/script_type_module_basic/script_type_module_basic.test.mjs +++ b/tests/build/basics/script_type_module_basic/script_type_module_basic.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/basics/script_type_module_basic_2/script_type_module_basic_2.test.mjs b/tests/build/basics/script_type_module_basic_2/script_type_module_basic_2.test.mjs index e4716b8c0a..8c8adc1285 100644 --- a/tests/build/basics/script_type_module_basic_2/script_type_module_basic_2.test.mjs +++ b/tests/build/basics/script_type_module_basic_2/script_type_module_basic_2.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/basics/script_type_module_inline_basic/script_type_module_inline_basic.test.mjs b/tests/build/basics/script_type_module_inline_basic/script_type_module_inline_basic.test.mjs index 895b266c64..a5e80609d2 100644 --- a/tests/build/basics/script_type_module_inline_basic/script_type_module_inline_basic.test.mjs +++ b/tests/build/basics/script_type_module_inline_basic/script_type_module_inline_basic.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/bundling_css/bundling_css.test.mjs b/tests/build/bundling_css/bundling_css.test.mjs index 7105802c72..534db9f40c 100644 --- a/tests/build/bundling_css/bundling_css.test.mjs +++ b/tests/build/bundling_css/bundling_css.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/bundling_js_module/bundling_js_module.test.mjs b/tests/build/bundling_js_module/bundling_js_module.test.mjs index 73b742ac90..f04df72b38 100644 --- a/tests/build/bundling_js_module/bundling_js_module.test.mjs +++ b/tests/build/bundling_js_module/bundling_js_module.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/css_entry/css.test.mjs b/tests/build/css_entry/css.test.mjs index 3a622e4ea7..06c1e7f662 100644 --- a/tests/build/css_entry/css.test.mjs +++ b/tests/build/css_entry/css.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/css_inline_content_minified/css_inline_content_minified.test.mjs b/tests/build/css_inline_content_minified/css_inline_content_minified.test.mjs index 1ef5e26c75..07d7060792 100644 --- a/tests/build/css_inline_content_minified/css_inline_content_minified.test.mjs +++ b/tests/build/css_inline_content_minified/css_inline_content_minified.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/build/import_circular/import_circular_build.test.mjs b/tests/build/import_circular/import_circular_build.test.mjs index 8e47f0625f..320083f9f7 100644 --- a/tests/build/import_circular/import_circular_build.test.mjs +++ b/tests/build/import_circular/import_circular_build.test.mjs @@ -1,6 +1,6 @@ // https://github.com/rollup/rollup/tree/dba6f13132a1d7dac507d5056399d8af0eed6375/test/function/samples/preserve-modules-circular-order -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/import_dynamic/import_dynamic.test.mjs b/tests/build/import_dynamic/import_dynamic.test.mjs index 929a1291f0..851a0de921 100644 --- a/tests/build/import_dynamic/import_dynamic.test.mjs +++ b/tests/build/import_dynamic/import_dynamic.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/import_dynamic_assert_type_json/import_dynamic_assert_type_json.test.mjs b/tests/build/import_dynamic_assert_type_json/import_dynamic_assert_type_json.test.mjs index fdcf4f5a47..5ad8107e7d 100644 --- a/tests/build/import_dynamic_assert_type_json/import_dynamic_assert_type_json.test.mjs +++ b/tests/build/import_dynamic_assert_type_json/import_dynamic_assert_type_json.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/json_parse/json_parse.test.mjs b/tests/build/json_parse/json_parse.test.mjs index ae92dc83ae..5a9738f1e7 100644 --- a/tests/build/json_parse/json_parse.test.mjs +++ b/tests/build/json_parse/json_parse.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/link_href_@import/link_href_@import.test.mjs b/tests/build/link_href_@import/link_href_@import.test.mjs index 078b0b51f5..abcaa7a9ef 100644 --- a/tests/build/link_href_@import/link_href_@import.test.mjs +++ b/tests/build/link_href_@import/link_href_@import.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/new_inline_content/new_inline_content.test.mjs b/tests/build/new_inline_content/new_inline_content.test.mjs index 2670485f11..70e76a4d9a 100644 --- a/tests/build/new_inline_content/new_inline_content.test.mjs +++ b/tests/build/new_inline_content/new_inline_content.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/new_url/new_url.test.mjs b/tests/build/new_url/new_url.test.mjs index 84a9982f1d..e8f1309e17 100644 --- a/tests/build/new_url/new_url.test.mjs +++ b/tests/build/new_url/new_url.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/new_url_and_js_module_fallback/new_url_and_js_module_fallback.test.mjs b/tests/build/new_url_and_js_module_fallback/new_url_and_js_module_fallback.test.mjs index 051820ab23..f88692d724 100644 --- a/tests/build/new_url_and_js_module_fallback/new_url_and_js_module_fallback.test.mjs +++ b/tests/build/new_url_and_js_module_fallback/new_url_and_js_module_fallback.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/new_url_and_js_module_fallback_2/new_url_and_js_module_fallback.test.mjs b/tests/build/new_url_and_js_module_fallback_2/new_url_and_js_module_fallback.test.mjs index 2261b7ff63..3bc396f6e4 100644 --- a/tests/build/new_url_and_js_module_fallback_2/new_url_and_js_module_fallback.test.mjs +++ b/tests/build/new_url_and_js_module_fallback_2/new_url_and_js_module_fallback.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/new_url_directory/new_url_directory.test.mjs b/tests/build/new_url_directory/new_url_directory.test.mjs index bce3d6c398..41b725d7ba 100644 --- a/tests/build/new_url_directory/new_url_directory.test.mjs +++ b/tests/build/new_url_directory/new_url_directory.test.mjs @@ -1,5 +1,5 @@ import { readFileSync } from "node:fs"; -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/new_url_directory_2/new_url_directory_2.test.mjs b/tests/build/new_url_directory_2/new_url_directory_2.test.mjs index 2df463f538..e4b6b8089f 100644 --- a/tests/build/new_url_directory_2/new_url_directory_2.test.mjs +++ b/tests/build/new_url_directory_2/new_url_directory_2.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/script_classic_and_sourcemap/script_classic_and_sourcemap.test.mjs b/tests/build/script_classic_and_sourcemap/script_classic_and_sourcemap.test.mjs index cf1030eed9..8c82d8afa5 100644 --- a/tests/build/script_classic_and_sourcemap/script_classic_and_sourcemap.test.mjs +++ b/tests/build/script_classic_and_sourcemap/script_classic_and_sourcemap.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/script_type_module/script_type_module.test.mjs b/tests/build/script_type_module/script_type_module.test.mjs index 12c409da86..3602ba9cfb 100644 --- a/tests/build/script_type_module/script_type_module.test.mjs +++ b/tests/build/script_type_module/script_type_module.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/script_type_module_inline/script_type_module_inline.test.mjs b/tests/build/script_type_module_inline/script_type_module_inline.test.mjs index 1ca3c304f9..ad87f1fed9 100644 --- a/tests/build/script_type_module_inline/script_type_module_inline.test.mjs +++ b/tests/build/script_type_module_inline/script_type_module_inline.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/build/script_type_module_inline_2/script_type_module_inline_2.test.mjs b/tests/build/script_type_module_inline_2/script_type_module_inline_2.test.mjs index 7cd5f7bbca..3232ef3fb9 100644 --- a/tests/build/script_type_module_inline_2/script_type_module_inline_2.test.mjs +++ b/tests/build/script_type_module_inline_2/script_type_module_inline_2.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/build/versioning_static_import/versioning_static_import.test.mjs b/tests/build/versioning_static_import/versioning_static_import.test.mjs index 6745a08759..3ca4ea24a6 100644 --- a/tests/build/versioning_static_import/versioning_static_import.test.mjs +++ b/tests/build/versioning_static_import/versioning_static_import.test.mjs @@ -15,7 +15,7 @@ import { writeFileSync, readFileSync } from "node:fs"; import { chromium } from "playwright"; -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/as_js_module/as_js_module_build.test.mjs b/tests/dev_and_build/as_js_module/as_js_module_build.test.mjs index 1c4a3186a4..a70f14bf69 100644 --- a/tests/dev_and_build/as_js_module/as_js_module_build.test.mjs +++ b/tests/dev_and_build/as_js_module/as_js_module_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/css_background_url/css_background_url_build.test.mjs b/tests/dev_and_build/css_background_url/css_background_url_build.test.mjs index 7eede26c88..4e1f826a5a 100644 --- a/tests/dev_and_build/css_background_url/css_background_url_build.test.mjs +++ b/tests/dev_and_build/css_background_url/css_background_url_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/css_conditional_imports/css_conditional_imports_build.test.mjs b/tests/dev_and_build/css_conditional_imports/css_conditional_imports_build.test.mjs index 7eede26c88..4e1f826a5a 100644 --- a/tests/dev_and_build/css_conditional_imports/css_conditional_imports_build.test.mjs +++ b/tests/dev_and_build/css_conditional_imports/css_conditional_imports_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/decorators/decorators_build.xtest.mjs b/tests/dev_and_build/decorators/decorators_build.xtest.mjs index 99bc330984..193cbd94dc 100644 --- a/tests/dev_and_build/decorators/decorators_build.xtest.mjs +++ b/tests/dev_and_build/decorators/decorators_build.xtest.mjs @@ -3,7 +3,7 @@ * not finalized -> Not supported for now */ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/hash_local_reference/hash_local_reference_build.test.mjs b/tests/dev_and_build/hash_local_reference/hash_local_reference_build.test.mjs index 1428312e77..215730a331 100644 --- a/tests/dev_and_build/hash_local_reference/hash_local_reference_build.test.mjs +++ b/tests/dev_and_build/hash_local_reference/hash_local_reference_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/import_assert_type_css/import_assert_type_css_build.test.mjs b/tests/dev_and_build/import_assert_type_css/import_assert_type_css_build.test.mjs index 8a157fda1f..c29d7c8ec1 100644 --- a/tests/dev_and_build/import_assert_type_css/import_assert_type_css_build.test.mjs +++ b/tests/dev_and_build/import_assert_type_css/import_assert_type_css_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/import_assert_type_json/import_assert_type_json_build.test.mjs b/tests/dev_and_build/import_assert_type_json/import_assert_type_json_build.test.mjs index c2e4b0c100..7286737148 100644 --- a/tests/dev_and_build/import_assert_type_json/import_assert_type_json_build.test.mjs +++ b/tests/dev_and_build/import_assert_type_json/import_assert_type_json_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/import_meta/import_meta_build.test.mjs b/tests/dev_and_build/import_meta/import_meta_build.test.mjs index 87f8fe85c9..3f571c2076 100644 --- a/tests/dev_and_build/import_meta/import_meta_build.test.mjs +++ b/tests/dev_and_build/import_meta/import_meta_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/import_meta_resolve/import_meta_resolve_build.test.mjs b/tests/dev_and_build/import_meta_resolve/import_meta_resolve_build.test.mjs index 60d37c373e..d5aaa26d99 100644 --- a/tests/dev_and_build/import_meta_resolve/import_meta_resolve_build.test.mjs +++ b/tests/dev_and_build/import_meta_resolve/import_meta_resolve_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/injections/injections_build.test.mjs b/tests/dev_and_build/injections/injections_build.test.mjs index 02d0f555dc..e3cab51e83 100644 --- a/tests/dev_and_build/injections/injections_build.test.mjs +++ b/tests/dev_and_build/injections/injections_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/inline_as_base_64/inline_as_base_64_build.test.mjs b/tests/dev_and_build/inline_as_base_64/inline_as_base_64_build.test.mjs index 2e85a37287..aa3bfe0b60 100644 --- a/tests/dev_and_build/inline_as_base_64/inline_as_base_64_build.test.mjs +++ b/tests/dev_and_build/inline_as_base_64/inline_as_base_64_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/inlining/inlining_build.test.mjs b/tests/dev_and_build/inlining/inlining_build.test.mjs index 5d83ac4574..e471dae74f 100644 --- a/tests/dev_and_build/inlining/inlining_build.test.mjs +++ b/tests/dev_and_build/inlining/inlining_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/inlining/inlining_dev.test.mjs b/tests/dev_and_build/inlining/inlining_dev.test.mjs index c2648b753a..e0330b36c1 100644 --- a/tests/dev_and_build/inlining/inlining_dev.test.mjs +++ b/tests/dev_and_build/inlining/inlining_dev.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { startDevServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/modulepreload/modulepreload_build.test.mjs b/tests/dev_and_build/resource_hints/modulepreload/modulepreload_build.test.mjs index 503519ed80..7c69c4d0ff 100644 --- a/tests/dev_and_build/resource_hints/modulepreload/modulepreload_build.test.mjs +++ b/tests/dev_and_build/resource_hints/modulepreload/modulepreload_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/preload_bundled/preload_bundled_build.test.mjs b/tests/dev_and_build/resource_hints/preload_bundled/preload_bundled_build.test.mjs index c11f6db351..4752895bbd 100644 --- a/tests/dev_and_build/resource_hints/preload_bundled/preload_bundled_build.test.mjs +++ b/tests/dev_and_build/resource_hints/preload_bundled/preload_bundled_build.test.mjs @@ -1,5 +1,5 @@ import stripAnsi from "strip-ansi"; -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/preload_injection/preload_injection_build.test.mjs b/tests/dev_and_build/resource_hints/preload_injection/preload_injection_build.test.mjs index 70fd76f1f7..993573e896 100644 --- a/tests/dev_and_build/resource_hints/preload_injection/preload_injection_build.test.mjs +++ b/tests/dev_and_build/resource_hints/preload_injection/preload_injection_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/preload_js_module/preload_js_module_build.test.mjs b/tests/dev_and_build/resource_hints/preload_js_module/preload_js_module_build.test.mjs index 4de4c2b184..8c8e3f908b 100644 --- a/tests/dev_and_build/resource_hints/preload_js_module/preload_js_module_build.test.mjs +++ b/tests/dev_and_build/resource_hints/preload_js_module/preload_js_module_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/preload_local_font/preload_local_font_build.test.mjs b/tests/dev_and_build/resource_hints/preload_local_font/preload_local_font_build.test.mjs index f25643be3c..f10dbed11c 100644 --- a/tests/dev_and_build/resource_hints/preload_local_font/preload_local_font_build.test.mjs +++ b/tests/dev_and_build/resource_hints/preload_local_font/preload_local_font_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/preload_local_font_2/preload_local_font_build_2.test.mjs b/tests/dev_and_build/resource_hints/preload_local_font_2/preload_local_font_build_2.test.mjs index 26c1a9cfcb..df1acea77f 100644 --- a/tests/dev_and_build/resource_hints/preload_local_font_2/preload_local_font_build_2.test.mjs +++ b/tests/dev_and_build/resource_hints/preload_local_font_2/preload_local_font_build_2.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/resource_hints/preload_style_and_import_css/preload_style_and_import_css_build.test.mjs b/tests/dev_and_build/resource_hints/preload_style_and_import_css/preload_style_and_import_css_build.test.mjs index cd83be5547..41b7eb72c4 100644 --- a/tests/dev_and_build/resource_hints/preload_style_and_import_css/preload_style_and_import_css_build.test.mjs +++ b/tests/dev_and_build/resource_hints/preload_style_and_import_css/preload_style_and_import_css_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build, startBuildServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/sourcemap_js_inline/sourcemap_js_inline_dev.test.mjs b/tests/dev_and_build/sourcemap_js_inline/sourcemap_js_inline_dev.test.mjs index 2c483f6694..fe81cbe80f 100644 --- a/tests/dev_and_build/sourcemap_js_inline/sourcemap_js_inline_dev.test.mjs +++ b/tests/dev_and_build/sourcemap_js_inline/sourcemap_js_inline_dev.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { ensureEmptyDirectory } from "@jsenv/filesystem"; import { startDevServer } from "@jsenv/core"; diff --git a/tests/dev_and_build/top_level_await/top_level_await.test.mjs b/tests/dev_and_build/top_level_await/top_level_await.test.mjs index 650b4970b1..0d460f5cbf 100644 --- a/tests/dev_and_build/top_level_await/top_level_await.test.mjs +++ b/tests/dev_and_build/top_level_await/top_level_await.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/top_level_await_2/top_level_await_2.test.mjs b/tests/dev_and_build/top_level_await_2/top_level_await_2.test.mjs index f978ce99c5..c73af5219f 100644 --- a/tests/dev_and_build/top_level_await_2/top_level_await_2.test.mjs +++ b/tests/dev_and_build/top_level_await_2/top_level_await_2.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/workers/new_worker_type_module/new_worker_type_module_build.test.mjs b/tests/dev_and_build/workers/new_worker_type_module/new_worker_type_module_build.test.mjs index 81c7281d51..862bc672c8 100644 --- a/tests/dev_and_build/workers/new_worker_type_module/new_worker_type_module_build.test.mjs +++ b/tests/dev_and_build/workers/new_worker_type_module/new_worker_type_module_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/workers/service_worker_shared_babel_helper/service_worker_shared_babel_helper_build.test.mjs b/tests/dev_and_build/workers/service_worker_shared_babel_helper/service_worker_shared_babel_helper_build.test.mjs index 0febc6dc07..c7967791db 100644 --- a/tests/dev_and_build/workers/service_worker_shared_babel_helper/service_worker_shared_babel_helper_build.test.mjs +++ b/tests/dev_and_build/workers/service_worker_shared_babel_helper/service_worker_shared_babel_helper_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/workers/service_worker_type_classic/service_worker_type_classic_build.test.mjs b/tests/dev_and_build/workers/service_worker_type_classic/service_worker_type_classic_build.test.mjs index a92ddd3534..ee68f9a3b8 100644 --- a/tests/dev_and_build/workers/service_worker_type_classic/service_worker_type_classic_build.test.mjs +++ b/tests/dev_and_build/workers/service_worker_type_classic/service_worker_type_classic_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/workers/service_worker_type_module/service_worker_type_module_build.test.mjs b/tests/dev_and_build/workers/service_worker_type_module/service_worker_type_module_build.test.mjs index d143f234df..5d7377e1aa 100644 --- a/tests/dev_and_build/workers/service_worker_type_module/service_worker_type_module_build.test.mjs +++ b/tests/dev_and_build/workers/service_worker_type_module/service_worker_type_module_build.test.mjs @@ -1,4 +1,4 @@ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/workers/worker_babel_helpers_shared/worker_babel_helpers_shared_build.test.mjs b/tests/dev_and_build/workers/worker_babel_helpers_shared/worker_babel_helpers_shared_build.test.mjs index e0ae17a91c..5fe5cc950b 100644 --- a/tests/dev_and_build/workers/worker_babel_helpers_shared/worker_babel_helpers_shared_build.test.mjs +++ b/tests/dev_and_build/workers/worker_babel_helpers_shared/worker_babel_helpers_shared_build.test.mjs @@ -5,7 +5,7 @@ * whould throw in the worker context */ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_and_build/workers/worker_versioning_importmap/worker_versioning_importmap_build.test.mjs b/tests/dev_and_build/workers/worker_versioning_importmap/worker_versioning_importmap_build.test.mjs index 219cffa563..c69ceb8c0e 100644 --- a/tests/dev_and_build/workers/worker_versioning_importmap/worker_versioning_importmap_build.test.mjs +++ b/tests/dev_and_build/workers/worker_versioning_importmap/worker_versioning_importmap_build.test.mjs @@ -3,7 +3,7 @@ * as importmap are not supported in workers */ -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { build } from "@jsenv/core"; diff --git a/tests/dev_server/cache_node_package/cache_node_package.test.mjs b/tests/dev_server/cache_node_package/cache_node_package.test.mjs index 507c3b71a5..752dbf696f 100644 --- a/tests/dev_server/cache_node_package/cache_node_package.test.mjs +++ b/tests/dev_server/cache_node_package/cache_node_package.test.mjs @@ -5,7 +5,7 @@ import { writeFileSync, readFileSync } from "node:fs"; import { chromium } from "playwright"; -import { takeDirectorySnapshot } from "@jsenv/snapshots"; +import { takeDirectorySnapshot } from "@jsenv/snapshot"; import { assert } from "@jsenv/assert"; import { startDevServer } from "@jsenv/core";