mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
c74d3b30ca
Should `remove_console` and `react_remove_properties` be dependencies of the `next-next` crate or reuse the dependencies from `next-custom-transforms`?
24 lines
550 B
TypeScript
24 lines
550 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('remove-console', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
})
|
|
|
|
it('should remove console.log', async () => {
|
|
const browser = await next.browser('/')
|
|
expect(await browser.elementByCss('p').text()).toBe('hello client')
|
|
|
|
const logs = await browser.log()
|
|
|
|
expect(logs).not.toContainEqual({
|
|
source: 'log',
|
|
message: 'MY LOG MESSAGE',
|
|
})
|
|
expect(logs).toContainEqual({
|
|
source: 'error',
|
|
message: 'MY ERROR MESSAGE',
|
|
})
|
|
})
|
|
})
|