Skip to content

Commit a238175

Browse files
committed
fixed externals test
1 parent 7abf91f commit a238175

File tree

3 files changed

+863
-1875
lines changed

3 files changed

+863
-1875
lines changed

tests/externals/externals.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ afterAll(async () => {
99
});
1010

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

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

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

0 commit comments

Comments
 (0)