diff --git a/fork/dynamic-cdn-webpack-plugin/src/find.test.js b/fork/dynamic-cdn-webpack-plugin/src/find.test.js index 0d72fb96ba..c2c016f6b9 100644 --- a/fork/dynamic-cdn-webpack-plugin/src/find.test.js +++ b/fork/dynamic-cdn-webpack-plugin/src/find.test.js @@ -17,12 +17,9 @@ describe('findPackages', () => { '/node_modules/react/index.js': 'console.log("react");', '/node_modules/react/package.json': '{"name": "react", "version": "16.14.0"}', '/node_modules/@types/classnames/index.js': 'console.log("@types/classnames");', - '/node_modules/@talend/react-components/index.js': - 'console.log("@talend/react-components");', - '/node_modules/@talend/react-components/node_modules/react/index.js': - 'console.log("react");', - '/node_modules/@talend/react-containers/index.js': - 'console.log("@talend/react-containers");', + '/node_modules/@talend/react-components/index.js': 'console.log("@talend/react-components");', + '/node_modules/@talend/react-components/node_modules/react/index.js': 'console.log("react");', + '/node_modules/@talend/react-containers/index.js': 'console.log("@talend/react-containers");', }; beforeEach(() => { @@ -35,9 +32,8 @@ describe('findPackages', () => { const result = findPackages(undefined, 'react'); // then - expect(result.length).toBe(2); + expect(result.length).toBe(1); expect(result[0]).toBe('/node_modules/react'); - expect(result[1]).toBe('/node_modules/@talend/react-components/node_modules/react'); }); test('should find non scoped package', () => {