mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 22:51:02 +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'
|
import { buildFixture } from '../../utils/build'
|
||||||
|
|
||||||
process.env.NUXT_TS = 'true'
|
|
||||||
buildFixture('typescript')
|
buildFixture('typescript')
|
||||||
delete process.env.NUXT_TS
|
|
||||||
|
@ -7,11 +7,9 @@ describe('typescript modern', () => {
|
|||||||
let nuxt
|
let nuxt
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
process.env.NUXT_TS = 'true'
|
|
||||||
const options = await loadFixture('typescript')
|
const options = await loadFixture('typescript')
|
||||||
nuxt = new Nuxt(Object.assign(options, { modern: true }))
|
nuxt = new Nuxt(Object.assign(options, { modern: true }))
|
||||||
await new Builder(nuxt, BundleBuilder).build()
|
await new Builder(nuxt, BundleBuilder).build()
|
||||||
delete process.env.NUXT_TS
|
|
||||||
})
|
})
|
||||||
|
|
||||||
test('fork-ts-checker-webpack-plugin', () => {
|
test('fork-ts-checker-webpack-plugin', () => {
|
||||||
|
@ -6,9 +6,7 @@ describe('typescript', () => {
|
|||||||
const url = route => 'http://localhost:' + port + route
|
const url = route => 'http://localhost:' + port + route
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
process.env.NUXT_TS = 'true'
|
|
||||||
const options = await loadFixture('typescript')
|
const options = await loadFixture('typescript')
|
||||||
delete process.env.NUXT_TS
|
|
||||||
nuxt = new Nuxt(options)
|
nuxt = new Nuxt(options)
|
||||||
await nuxt.ready()
|
await nuxt.ready()
|
||||||
port = await getPort()
|
port = await getPort()
|
||||||
|
Loading…
Reference in New Issue
Block a user