ConusAI vendor v0.1.0-dev.20261013+85463d22
This commit is contained in:
parent
c3c6526952
commit
0da8a2a81b
@@ -0,0 +1,20 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
// `next build` rewrites tsconfig.json when the values differ from what Next 16
|
||||
// mandates (jsx: react-jsx, .next/dev/types in include), dirtying the checkout on
|
||||
// every build. The shipped file must already hold them.
|
||||
const tsconfig = JSON.parse(readFileSync(new URL('../tsconfig.json', import.meta.url), 'utf8')) as {
|
||||
compilerOptions: { jsx?: string }
|
||||
include: string[]
|
||||
}
|
||||
|
||||
describe('tsconfig holds the values Next 16 mandates', () => {
|
||||
it('uses the React automatic runtime jsx setting', () => {
|
||||
expect(tsconfig.compilerOptions.jsx).toBe('react-jsx')
|
||||
})
|
||||
|
||||
it('includes the dev types directory', () => {
|
||||
expect(tsconfig.include).toContain('.next/dev/types/**/*.ts')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user