Skip to content

Commit

Permalink
add console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Oct 16, 2023
1 parent cb20ef2 commit 82c1759
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions fork/dynamic-cdn-webpack-plugin/src/find.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,22 @@ 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(() => {
// Set up some mocked out file info before each test
require('fs').__setMockFiles(MOCK_FILE_INFO);
});

test('should find root and nested package', () => {
test.only('should find root and nested package', () => {
// when
const result = findPackages(undefined, 'react');

// then
console.log('LIST OF RESULT: ', result);
expect(result.length).toBe(2);
expect(result[0]).toBe('/node_modules/react');
expect(result[1]).toBe('/node_modules/@talend/react-components/node_modules/react');
Expand Down

0 comments on commit 82c1759

Please sign in to comment.