Skip to content

Commit

Permalink
Fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
thchia committed Aug 31, 2020
1 parent 2ce1d38 commit c60d647
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ describe("Serverless Trace With Dynamic Import", () => {
const nodeModules = await readdir(
path.join(outputDir, "api-lambda/node_modules")
);
expect(nodeModules).toEqual(["@sls-next", "next"]);

const slsNextNodeModules = await readdir(
path.join(outputDir, "api-lambda/node_modules/@sls-next")
);
expect(slsNextNodeModules).toContain("next-aws-cloudfront");
expect(nodeModules).toEqual(["next"]);
});

it("copies dynamic chunk to default lambda artefact", async () => {
Expand Down

0 comments on commit c60d647

Please sign in to comment.