Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
28dfb1f5
Unverified
Commit
28dfb1f5
authored
May 31, 2022
by
JJ Kasper
Committed by
GitHub
May 31, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure type check/link worker does not retry (#37324)
parent
ed0b580f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
index.ts
packages/next/build/index.ts
+1
-0
verifyAndLint.ts
packages/next/lib/verifyAndLint.ts
+1
-0
index.test.ts
test/production/missing-dep-error/index.test.ts
+28
-0
No files found.
packages/next/build/index.ts
View file @
28dfb1f5
...
@@ -2377,6 +2377,7 @@ function verifyTypeScriptSetup(
...
@@ -2377,6 +2377,7 @@ function verifyTypeScriptSetup(
{
{
numWorkers
,
numWorkers
,
enableWorkerThreads
,
enableWorkerThreads
,
maxRetries
:
0
,
}
}
)
as
JestWorker
&
{
)
as
JestWorker
&
{
verifyTypeScriptSetup
:
typeof
import
(
'../lib/verifyTypeScriptSetup'
).
verifyTypeScriptSetup
verifyTypeScriptSetup
:
typeof
import
(
'../lib/verifyTypeScriptSetup'
).
verifyTypeScriptSetup
...
...
packages/next/lib/verifyAndLint.ts
View file @
28dfb1f5
...
@@ -20,6 +20,7 @@ export async function verifyAndLint(
...
@@ -20,6 +20,7 @@ export async function verifyAndLint(
const
lintWorkers
=
new
Worker
(
require
.
resolve
(
'./eslint/runLintCheck'
),
{
const
lintWorkers
=
new
Worker
(
require
.
resolve
(
'./eslint/runLintCheck'
),
{
numWorkers
,
numWorkers
,
enableWorkerThreads
,
enableWorkerThreads
,
maxRetries
:
0
,
})
as
Worker
&
{
})
as
Worker
&
{
runLintCheck
:
typeof
import
(
'./eslint/runLintCheck'
).
runLintCheck
runLintCheck
:
typeof
import
(
'./eslint/runLintCheck'
).
runLintCheck
}
}
...
...
test/production/missing-dep-error/index.test.ts
0 → 100644
View file @
28dfb1f5
import
{
createNext
}
from
'e2e-utils'
import
{
NextInstance
}
from
'test/lib/next-modes/base'
describe
(
'missing-dep-error'
,
()
=>
{
let
next
:
NextInstance
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
files
:
{
'pages/index.tsx'
:
`
export default function Page() {
return <p>hello world</p>
}
`
,
},
skipStart
:
true
,
})
})
afterAll
(()
=>
next
.
destroy
())
it
(
'should only show error once'
,
async
()
=>
{
await
next
.
start
().
catch
(()
=>
{})
expect
(
next
.
cliOutput
.
match
(
/It looks like you're trying to use TypeScript/g
)
?.
length
).
toBe
(
1
)
})
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment