Skip to content

Commit

Permalink
remove s from @jsenv/snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Nov 22, 2023
1 parent 568a80b commit 73661df
Show file tree
Hide file tree
Showing 119 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -16,7 +16,7 @@ project/
```

```js
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

takeDirectorySnapshot(
new URL("./dist/", import.meta.url),
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
assertSnapshotDirectoryTakenByFunction,
writeDirectoryContent,
readDirectoryContent,
} from "@jsenv/snapshots";
} from "@jsenv/snapshot";

const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url);

Expand Down
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
assertSnapshotDirectoryTakenByFunction,
writeDirectoryContent,
} from "@jsenv/snapshots";
} from "@jsenv/snapshot";

const snapshotsDirectoryUrl = new URL("./snapshots/", import.meta.url);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { build } from "@jsenv/core";

const test = async ({ name, ...params }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshots";
import { assertSnapshotDirectoryTakenByFunction } from "@jsenv/snapshot";

assertSnapshotDirectoryTakenByFunction(
new URL("./snapshots/", import.meta.url),
Expand Down
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
2 changes: 1 addition & 1 deletion tests/build/bundling_css/bundling_css.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
2 changes: 1 addition & 1 deletion tests/build/bundling_js_module/bundling_js_module.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
2 changes: 1 addition & 1 deletion tests/build/css_entry/css.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
2 changes: 1 addition & 1 deletion tests/build/import_circular/import_circular_build.test.mjs
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/import_dynamic/import_dynamic.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/json_parse/json_parse.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/link_href_@import/[email protected]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/new_inline_content/new_inline_content.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/new_url/new_url.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/new_url_directory/new_url_directory.test.mjs
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
2 changes: 1 addition & 1 deletion tests/build/script_type_module/script_type_module.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";
import { assert } from "@jsenv/assert";

import { build } from "@jsenv/core";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { takeDirectorySnapshot } from "@jsenv/snapshots";
import { takeDirectorySnapshot } from "@jsenv/snapshot";

import { build } from "@jsenv/core";

Expand Down
Loading

0 comments on commit 73661df

Please sign in to comment.