Skip to content

Commit f8d6606

Browse files
authored
chore: ignore tests from npm (#2563)
1 parent f26ebc1 commit f8d6606

File tree

22 files changed

+22
-25
lines changed

22 files changed

+22
-25
lines changed

.npmignore

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/webpack-cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
],
2525
"files": [
2626
"bin",
27-
"lib"
27+
"lib",
28+
"!**/*__tests__"
2829
],
2930
"dependencies": {
3031
"@discoveryjs/json-ext": "^0.5.0",

smoketests/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable node/no-unpublished-require */
2-
31
const tests = [
42
require('./missing-packages/webpack-dev-server.test.js'),
53
require('./missing-packages/webpack.test.js'),

test/build/analyze/analyze.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line node/no-unpublished-require
12
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
23

34
module.exports = {

test/build/cache/cache.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const path = require('path');
4+
// eslint-disable-next-line node/no-unpublished-require
45
const rimraf = require('rimraf');
56
const { run, isWebpack5 } = require('../../utils/test-utils');
67

test/build/core-flags/cache-flags.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const path = require('path');
4+
// eslint-disable-next-line node/no-unpublished-require
45
const rimraf = require('rimraf');
56
const { run } = require('../../utils/test-utils');
67
const { existsSync, writeFileSync, unlinkSync } = require('fs');

test/build/entry/scss/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// eslint-disable-next-line
1+
// eslint-disable-next-line node/no-missing-require
22
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
33

44
module.exports = {

test/build/env/array/array-env.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const path = require('path');
4+
// eslint-disable-next-line node/no-unpublished-require
45
const execa = require('execa');
56

67
const { sync: spawnSync } = execa;

test/build/env/object/object-env.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const path = require('path');
4+
// eslint-disable-next-line node/no-unpublished-require
45
const execa = require('execa');
56
const { sync: spawnSync } = execa;
67

test/build/prefetch/prefetch.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const fs = require('fs');
44
const { join } = require('path');
55
const { run } = require('../../utils/test-utils');
6+
// eslint-disable-next-line node/no-unpublished-require
67
const rimraf = require('rimraf');
78

89
describe('prefetch', () => {

0 commit comments

Comments
 (0)