From 77bc7e41a00ee7b5dcc70bafa0ac62b9f06f633b Mon Sep 17 00:00:00 2001 From: Sebastien LE MOUILLOUR Date: Tue, 7 Nov 2023 16:26:35 +0100 Subject: [PATCH] fix tests in dynamic-cdn-webpack-plugin --- fork/dynamic-cdn-webpack-plugin/.gitignore | 1 + fork/dynamic-cdn-webpack-plugin/test/core.test.js | 1 + .../fixtures/app/node_modules/regenerator-runtime/index.js | 1 + .../app/node_modules/regenerator-runtime/package.json | 6 ++++++ 4 files changed, 9 insertions(+) create mode 100644 fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/index.js create mode 100644 fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/package.json diff --git a/fork/dynamic-cdn-webpack-plugin/.gitignore b/fork/dynamic-cdn-webpack-plugin/.gitignore index 7e0138d353..a3cc081795 100644 --- a/fork/dynamic-cdn-webpack-plugin/.gitignore +++ b/fork/dynamic-cdn-webpack-plugin/.gitignore @@ -4,3 +4,4 @@ test/fixtures/output yarn.lock .nyc_output coverage +!test/fixtures/app/node_modules diff --git a/fork/dynamic-cdn-webpack-plugin/test/core.test.js b/fork/dynamic-cdn-webpack-plugin/test/core.test.js index b0715c3f9c..0725f4c428 100644 --- a/fork/dynamic-cdn-webpack-plugin/test/core.test.js +++ b/fork/dynamic-cdn-webpack-plugin/test/core.test.js @@ -254,6 +254,7 @@ describe('core', () => { // then const files = getChunkFiles(stats); + console.log('TOTOTOTOTOTOT', files); expect(files).toHaveLength(3); expect(files).toContain('app.js'); expect(files).toContain('https://unpkg.com/@babel/polyfill@7.0.0/dist/polyfill.js'); diff --git a/fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/index.js b/fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/index.js new file mode 100644 index 0000000000..e27ca4c042 --- /dev/null +++ b/fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/index.js @@ -0,0 +1 @@ +console.log('THIS IS regenerator-runtime too!'); diff --git a/fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/package.json b/fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/package.json new file mode 100644 index 0000000000..281facc13b --- /dev/null +++ b/fork/dynamic-cdn-webpack-plugin/test/fixtures/app/node_modules/regenerator-runtime/package.json @@ -0,0 +1,6 @@ +{ + "license": "MIT", + "main": "index.js", + "name": "regenerator-runtime", + "version": "0.13.4" +}