@altano/vitest-plugins 0.1.0 → 0.1.1
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/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/matchers/setup.ts +6 -6
- package/src/matchers/toBeDirectory.ts +1 -1
- package/src/matchers/toBeFile.ts +1 -1
- package/src/matchers/toBePath.ts +1 -1
- package/src/matchers/toEqualFile.ts +1 -1
- package/src/matchers/toMatchError.ts +1 -1
- package/src/matchers/toThrowErrorMatching.ts +2 -2
- package/src/serializers/setup.ts +2 -2
- package/tests/unit/serializers/absolutePath.spec.ts +1 -1
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @altano/vitest-plugins@0.1.
|
|
2
|
+
> @altano/vitest-plugins@0.1.1 lint /home/runner/work/npm-packages/npm-packages/packages/vitest-plugins
|
|
3
3
|
> eslint package.json src/**/*.ts*
|
|
4
4
|
|
|
5
5
|
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/matchers/setup.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { expect } from "vitest";
|
|
2
2
|
|
|
3
|
-
import toBePath from "./toBePath";
|
|
4
|
-
import toBeFile from "./toBeFile";
|
|
5
|
-
import toBeDirectory from "./toBeDirectory";
|
|
6
|
-
import toEqualFile from "./toEqualFile";
|
|
7
|
-
import toMatchError from "./toMatchError";
|
|
8
|
-
import toThrowErrorMatching from "./toThrowErrorMatching";
|
|
3
|
+
import toBePath from "./toBePath.js";
|
|
4
|
+
import toBeFile from "./toBeFile.js";
|
|
5
|
+
import toBeDirectory from "./toBeDirectory.js";
|
|
6
|
+
import toEqualFile from "./toEqualFile.js";
|
|
7
|
+
import toMatchError from "./toMatchError.js";
|
|
8
|
+
import toThrowErrorMatching from "./toThrowErrorMatching.js";
|
|
9
9
|
|
|
10
10
|
expect.extend({
|
|
11
11
|
toBePath,
|
package/src/matchers/toBeFile.ts
CHANGED
package/src/matchers/toBePath.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { serializeError } from "serialize-error";
|
|
2
|
-
import type { Matcher } from "./matcher";
|
|
2
|
+
import type { Matcher } from "./matcher.js";
|
|
3
3
|
|
|
4
4
|
const toMatchError: Matcher = function (received: Error, expected: unknown) {
|
|
5
5
|
// If we don't serialize the error before passing it to vitest, vitest will
|
package/src/serializers/setup.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { expect } from "vitest";
|
|
2
2
|
|
|
3
|
-
import absolutePathSerializer from "./absolutePath";
|
|
3
|
+
import absolutePathSerializer from "./absolutePath.js";
|
|
4
4
|
expect.addSnapshotSerializer(absolutePathSerializer);
|
|
5
5
|
|
|
6
|
-
import vFileSerializer from "./vFile";
|
|
6
|
+
import vFileSerializer from "./vFile.js";
|
|
7
7
|
expect.addSnapshotSerializer(vFileSerializer);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
|
|
3
|
-
import absolutePathSerializer from "../../../src/serializers/absolutePath";
|
|
3
|
+
import absolutePathSerializer from "../../../src/serializers/absolutePath.js";
|
|
4
4
|
expect.addSnapshotSerializer(absolutePathSerializer);
|
|
5
5
|
|
|
6
6
|
describe("serializers", () => {
|