mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
88c9bae57b
* feat: add tests to check for changed files Make sure that if we are building or generating only files in buildDir and generate.dir are changed. If files in another location would also be changed due to a new config option, those locations should be guarded in lib/common/options so you cant set them lower then rootDir or srcDir. * fix running tests inBand use simpler path comparisons * add debug logs for ci use process.hrtime for waitFor test * add debug logs for ci use process.hrtime for waitFor test * use writeFileSync should probably help * use forEach instead of map when not returning a value update waitFor test to compare values with jest * fix appeveyor * use lower limit than delay in waitFor test revert isAppveyor export
20 lines
549 B
JavaScript
20 lines
549 B
JavaScript
const isAppveyor = !!process.env.APPVEYOR
|
|
describe.skip.appveyor = isAppveyor ? describe.skip : describe
|
|
test.skip.appveyor = isAppveyor ? test.skip : test
|
|
|
|
const isWin = process.platform === 'win32'
|
|
describe.skip.win = isWin ? describe.skip : describe
|
|
test.skip.win = isWin ? test.skip : test
|
|
|
|
jest.setTimeout(60000)
|
|
jest.mock('consola', () => {
|
|
const consola = {}
|
|
for (const level of [
|
|
'fatal', 'error', 'warn', 'log', 'info',
|
|
'start', 'success', 'ready', 'debug', 'trace'
|
|
]) {
|
|
consola[level] = jest.fn()
|
|
}
|
|
return consola
|
|
})
|