Skip to content

Commit 4f7d371

Browse files
author
Luca Forstner
committed
ref(nextjs): Remove internal usage of deepReadDirSync
1 parent eb5bb3d commit 4f7d371

File tree

16 files changed

+2
-1377
lines changed

16 files changed

+2
-1377
lines changed

packages/nextjs/.eslintrc.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,5 @@ module.exports = {
1919
project: ['../../tsconfig.dev.json'],
2020
},
2121
},
22-
{
23-
files: ['test/buildProcess/**'],
24-
parserOptions: {
25-
sourceType: 'module',
26-
},
27-
plugins: ['react'],
28-
extends: ['../../.eslintrc.js', 'plugin:react/recommended'],
29-
rules: {
30-
// Prop types validation is not useful in test environments
31-
'react/prop-types': 'off',
32-
// Nextjs takes care of including react, so we don't explicitly need to
33-
'react/react-in-jsx-scope': 'off',
34-
},
35-
},
3622
],
3723
};

packages/nextjs/jest.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@ const baseConfig = require('../../jest/jest.config.js');
22

33
module.exports = {
44
...baseConfig,
5-
// This prevents the build tests from running when unit tests run. (If they do, they fail, because the build being
6-
// tested hasn't necessarily run yet.)
7-
testPathIgnorePatterns: ['<rootDir>/test/buildProcess/', '<rootDir>/test/integration/'],
5+
testPathIgnorePatterns: ['<rootDir>/test/integration/'],
86
};

packages/nextjs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
"fix": "eslint . --format stylish --fix",
7272
"lint": "eslint . --format stylish",
7373
"test": "yarn test:unit",
74-
"test:all": "run-s test:unit test:integration test:build",
75-
"test:build": "yarn ts-node test/buildProcess/runTest.ts",
74+
"test:all": "run-s test:unit test:integration",
7675
"test:unit": "jest",
7776
"test:integration": "./test/run-integration-tests.sh && yarn test:types",
7877
"test:integration:clean": "(cd test/integration && rimraf .cache node_modules build)",

packages/nextjs/test/buildProcess/jest.config.js

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

packages/nextjs/test/buildProcess/runTest.ts

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

packages/nextjs/test/buildProcess/testApp/.gitignore

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

packages/nextjs/test/buildProcess/testApp/next.config.js

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

packages/nextjs/test/buildProcess/testApp/package.json

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

packages/nextjs/test/buildProcess/testApp/sentry.client.config.js

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

packages/nextjs/test/buildProcess/testApp/sentry.server.config.js

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

packages/nextjs/test/buildProcess/testApp/src/dogs.json

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

packages/nextjs/test/buildProcess/testApp/src/pages/_app.js

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

packages/nextjs/test/buildProcess/testApp/src/pages/api/dogs.js

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

packages/nextjs/test/buildProcess/testApp/src/pages/index.js

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

0 commit comments

Comments
 (0)