diff --git a/packages/libs/lambda-at-edge/tests/integration/serverless-trace-with-dynamic-import/serverless-trace-with-dynamic-import.test.ts b/packages/libs/lambda-at-edge/tests/integration/serverless-trace-with-dynamic-import/serverless-trace-with-dynamic-import.test.ts index 950f84d3a9..f3c10a9686 100644 --- a/packages/libs/lambda-at-edge/tests/integration/serverless-trace-with-dynamic-import/serverless-trace-with-dynamic-import.test.ts +++ b/packages/libs/lambda-at-edge/tests/integration/serverless-trace-with-dynamic-import/serverless-trace-with-dynamic-import.test.ts @@ -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 () => {