rsnext/test/integration/config-resolve-alias/test/index.test.js
Joe Haddad 18a9c7e371
Improve linting rules to catch more errors (#9374)
* Update `packages/`

* Update examples

* Update tests

* Update bench

* Update top level files

* Fix build

* trigger
2019-11-10 19:24:53 -08:00

18 lines
527 B
JavaScript

/* eslint-env jest */
/* global jasmine */
import { join } from 'path'
import { runNextCommand } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 5
describe('Invalid resolve alias', () => {
it('should show relevant error when webpack resolve alias is wrong', async () => {
const { stderr } = await runNextCommand(['build', join(__dirname, '..')], {
stderr: true,
})
expect(stderr).toMatch(
'webpack config.resolve.alias was incorrectly overriden. https://err.sh'
)
})
})