Skip to content

Commit

Permalink
removing unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jan 8, 2024
1 parent 5c1f867 commit 39adb13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/toolkit/config/__tests__/webpack-basic-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ describe('webpack.config.js', () => {
});

it('properly detects user config files in package mode', () => {
// hasProjectFileMock.mockReturnValue(true);
getBuildFilesMock.mockReturnValue({});
getPackageMock.mockReturnValue({
name: '@10up/component-library',
Expand All @@ -163,7 +162,6 @@ describe('webpack.config.js', () => {
});

it('properly detects user config files in project mode', () => {
// hasProjectFileMock.mockReturnValue(true);
const entryBuildFiles = {
entry1: 'entry1.js',
entry2: 'entry2.js',
Expand Down
2 changes: 0 additions & 2 deletions packages/toolkit/config/__tests__/webpack-cli-arguments.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ describe('webpack.config.js', () => {

it('allows changing browsersync port', () => {
process.argv.push('--port=3000');
// hasProjectFileMock.mockReturnValue(true);
const entryBuildFiles = {
entry1: 'entry1.js',
};
Expand All @@ -111,7 +110,6 @@ describe('webpack.config.js', () => {
it('includes webpack-bundle-analyzer when using --analyze', () => {
process.argv.push('--analyze');
process.env.NODE_ENV = 'production';
// hasProjectFileMock.mockReturnValue(true);
const entryBuildFiles = {
entry1: 'entry1.js',
};
Expand Down

0 comments on commit 39adb13

Please sign in to comment.