Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/04-architecture/turbopack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ These features are currently not supported:
- We are planning to implement this in the future.
- [Relay transforms](/docs/architecture/nextjs-compiler#relay)
- We are planning to implement this in the future.
- [`experimental.typedRoutes](https://nextjs.org/docs/app/api-reference/next-config-js/typedRoutes)
- We are planning to implement this in the future.
- `experimental.nextScriptWorkers`
- We are planning to implement this in the future.
- [AMP](/docs/pages/building-your-application/configuring/amp).
Expand Down
3 changes: 2 additions & 1 deletion test/integration/app-types/app-types.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { nextBuild } from 'next-test-utils'

const appDir = __dirname

describe('app type checking', () => {
// Turbopack doesn't support additional experimental features in the first version
;(process.env.TURBOPACK ? describe.skip : describe)('app type checking', () => {
;(process.env.TURBOPACK_DEV ? describe.skip : describe)(
'production mode',
() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
import { nextBuild } from 'next-test-utils'
import path from 'path'
;(process.env.TURBOPACK ? describe.skip : describe)(
'app dir - typed-routes-with-webpack-worker',
() => {
it('builds successfully without errors', async () => {
const output = await nextBuild(
path.join(__dirname, 'good-routes'),
undefined,
{
stdout: true,
stderr: true,
}
)

describe('app dir - typed-routes-with-webpack-worker', () => {
it('builds successfully without errors', async () => {
const output = await nextBuild(
path.join(__dirname, 'good-routes'),
undefined,
{
stdout: true,
stderr: true,
}
)
// check for the experimental flag warning
expect(output.stdout).toContain('webpackBuildWorker')
// should have a successful build
expect(output.code).toBe(0)
// with no errors
expect(output.stderr).not.toContain(`"/" is not an existing route.`)
})

// check for the experimental flag warning
expect(output.stdout).toContain('webpackBuildWorker')
// should have a successful build
expect(output.code).toBe(0)
// with no errors
expect(output.stderr).not.toContain(`"/" is not an existing route.`)
})
it('builds with valid errors', async () => {
const output = await nextBuild(
path.join(__dirname, 'bad-routes'),
undefined,
{
stdout: true,
stderr: true,
}
)

it('builds with valid errors', async () => {
const output = await nextBuild(
path.join(__dirname, 'bad-routes'),
undefined,
{
stdout: true,
stderr: true,
}
)

// check for the experimental flag warning
expect(output.stdout).toContain('webpackBuildWorker')
// should have a failed build
expect(output.code).toBe(1)
// with correct error
expect(output.stderr).toContain(`"/asdfasdfasdf" is not an existing route.`)
})
})
// check for the experimental flag warning
expect(output.stdout).toContain('webpackBuildWorker')
// should have a failed build
expect(output.code).toBe(1)
// with correct error
expect(output.stderr).toContain(
`"/asdfasdfasdf" is not an existing route.`
)
})
}
)
8 changes: 4 additions & 4 deletions test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6892,12 +6892,12 @@
},
"test/integration/app-types/app-types.test.js": {
"passed": [],
"failed": [
"failed": [],
"pending": [
"app type checking production mode should generate route types correctly and report link error",
"app type checking production mode should generate route types correctly and report router API errors",
"app type checking production mode should type check invalid entry exports"
],
"pending": [],
"flakey": [],
"runtimeError": false
},
Expand Down Expand Up @@ -15550,11 +15550,11 @@
},
"test/production/app-dir/typed-routes-with-webpack-worker/typed-routes-with-webpack-worker.test.ts": {
"passed": [],
"failed": [
"failed": [],
"pending": [
"app dir - typed-routes-with-webpack-worker builds successfully without errors",
"app dir - typed-routes-with-webpack-worker builds with valid errors"
],
"pending": [],
"flakey": [],
"runtimeError": false
},
Expand Down