mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
818c66f567
<!--- Provide a general summary of your changes in the title above --> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (a non-breaking change which fixes an issue) - [ ] New feature (a non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Description <!--- Describe your changes in detail --> <!--- Why is this change required? What problem does it solve? --> <!--- If it resolves an open issue, please link to the issue here. For example "Resolves: #1337" --> ## Checklist: <!--- Put an `x` in all the boxes that apply. --> <!--- If your change requires a documentation PR, please link it appropriately --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. (PR: #) - [ ] I have added tests to cover my changes (if not applicable, please state why) - [ ] All new and existing tests are passing.
16 lines
392 B
JavaScript
16 lines
392 B
JavaScript
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
|
|
})
|