@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @altano/vitest-plugins@0.1.0 lint /home/runner/work/npm-packages/npm-packages/packages/vitest-plugins
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
@@ -1,5 +1,11 @@
1
1
  # @altano/vitest-plugins
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2266961: fix import extensions for node libraries
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altano/vitest-plugins",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Custom matchers and snapshot serializers to enhance vitest",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -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,
@@ -1,4 +1,4 @@
1
- import type { Matcher } from "./matcher";
1
+ import type { Matcher } from "./matcher.js";
2
2
  import fs from "node:fs";
3
3
 
4
4
  function directoryExists(path: string): boolean {
@@ -1,4 +1,4 @@
1
- import type { Matcher } from "./matcher";
1
+ import type { Matcher } from "./matcher.js";
2
2
  import fs from "node:fs";
3
3
 
4
4
  function fileExists(path: string): boolean {
@@ -1,4 +1,4 @@
1
- import type { Matcher } from "./matcher";
1
+ import type { Matcher } from "./matcher.js";
2
2
  import { realpathSync } from "node:fs";
3
3
 
4
4
  function getRealpath(path: string): string | null {
@@ -1,4 +1,4 @@
1
- import type { Matcher } from "./matcher";
1
+ import type { Matcher } from "./matcher.js";
2
2
  import fs from "node:fs";
3
3
  import crypto from "node:crypto";
4
4
 
@@ -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
@@ -1,5 +1,5 @@
1
- import toMatchError from "./toMatchError";
2
- import type { Matcher } from "./matcher";
1
+ import toMatchError from "./toMatchError.js";
2
+ import type { Matcher } from "./matcher.js";
3
3
 
4
4
  const toThrowErrorMatching: Matcher = function (
5
5
  received: () => never,
@@ -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", () => {