chore(test): reduce use of NUXT_TS

This commit is contained in:
pooya parsa 2019-01-21 00:53:03 +03:30
parent 6a68f4e981
commit 6504e108ea
3 changed files with 0 additions and 6 deletions

View File

@ -1,5 +1,3 @@
import { buildFixture } from '../../utils/build'
process.env.NUXT_TS = 'true'
buildFixture('typescript')
delete process.env.NUXT_TS

View File

@ -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', () => {

View File

@ -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()