Skip to content

Commit

Permalink
test: path.join for importer
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Jul 11, 2022
1 parent 6b18244 commit 09008c6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions integration/compiler-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,13 @@ test.describe("compiler", () => {
});
});

let importer = path.join("app", "routes", "index.jsx");

expect(buildOutput).toContain(
`The path "some-not-installed-module" is imported in app/routes/index.jsx but "some-not-installed-module" was not found in your node_modules. Did you forget to install it?`
`The path "some-not-installed-module" is imported in ${importer} but "some-not-installed-module" was not found in your node_modules. Did you forget to install it?`
);
expect(buildOutput).toContain(
`The path "some-not-installed-module/sub" is imported in app/routes/index.jsx but "some-not-installed-module/sub" was not found in your node_modules. Did you forget to install it?`
`The path "some-not-installed-module/sub" is imported in ${importer} but "some-not-installed-module/sub" was not found in your node_modules. Did you forget to install it?`
);
});
});
Expand Down

0 comments on commit 09008c6

Please sign in to comment.