Skip to content

Commit

Permalink
normalize snap
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Jan 2, 2024
1 parent 0bdc710 commit 00b86bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/rspack/tests/Compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ import { Compiler, rspack } from "../src";
import { Stats } from "../src/Stats";
const path = require("path");
import { createFsFromVolume, Volume } from "memfs";
import serializer from "jest-serializer-path";
const captureStdio = require("./helpers/captureStdio");
const deprecationTracking = require("./helpers/deprecationTracking");

expect.addSnapshotSerializer(serializer);

describe("Compiler", () => {
function compile(entry: string, options, callback) {
const noOutputPath = !options.output || !options.output.path;
Expand Down Expand Up @@ -331,7 +334,7 @@ describe("Compiler", () => {
});
} catch (err) {
expect(err.toString()).toMatchInlineSnapshot(`
"Error: × Resolve error: Can't resolve './missing-file' in '/Users/bytedance/Projects/rspack/packages/rspack/tests'
"Error: × Resolve error: Can't resolve './missing-file' in '<PROJECT_ROOT>/tests'
"
`);
}
Expand Down

0 comments on commit 00b86bb

Please sign in to comment.