Skip to content

Commit

Permalink
fixed externals test
Browse files Browse the repository at this point in the history
  • Loading branch information
gligorkot committed Aug 30, 2024
1 parent 7abf91f commit a238175
Show file tree
Hide file tree
Showing 3 changed files with 863 additions and 1,875 deletions.
4 changes: 2 additions & 2 deletions tests/externals/externals.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ afterAll(async () => {
});

test("externals with forceInclude", async () => {
const result = await runSlsCommand(__dirname, "package");
const result = await runSlsCommand(__dirname, "package", true);

expect(result).not.toMatch(errorRegex);

/*
Ensure that knex is packaged as an external by default
And mysql is packaged because of forceInclude
*/
expect(result).toMatch(/Packing external modules: knex@\^[\d\\.]+, mysql/);
expect(result).toContain("Packing external modules: knex@^3.1.0, mysql");
});
Loading

0 comments on commit a238175

Please sign in to comment.