mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
chore(test): reduce use of NUXT_TS
This commit is contained in:
parent
6a68f4e981
commit
6504e108ea
2
test/fixtures/typescript/typescript.test.js
vendored
2
test/fixtures/typescript/typescript.test.js
vendored
@ -1,5 +1,3 @@
|
||||
import { buildFixture } from '../../utils/build'
|
||||
|
||||
process.env.NUXT_TS = 'true'
|
||||
buildFixture('typescript')
|
||||
delete process.env.NUXT_TS
|
||||
|
@ -7,11 +7,9 @@ describe('typescript modern', () => {
|
||||
let nuxt
|
||||
|
||||
beforeAll(async () => {
|
||||
process.env.NUXT_TS = 'true'
|
||||
const options = await loadFixture('typescript')
|
||||
nuxt = new Nuxt(Object.assign(options, { modern: true }))
|
||||
await new Builder(nuxt, BundleBuilder).build()
|
||||
delete process.env.NUXT_TS
|
||||
})
|
||||
|
||||
test('fork-ts-checker-webpack-plugin', () => {
|
||||
|
@ -6,9 +6,7 @@ describe('typescript', () => {
|
||||
const url = route => 'http://localhost:' + port + route
|
||||
|
||||
beforeAll(async () => {
|
||||
process.env.NUXT_TS = 'true'
|
||||
const options = await loadFixture('typescript')
|
||||
delete process.env.NUXT_TS
|
||||
nuxt = new Nuxt(options)
|
||||
await nuxt.ready()
|
||||
port = await getPort()
|
||||
|
Loading…
Reference in New Issue
Block a user