Files
vercel__next.js/test/e2e/app-dir/remove-console/remove-console.test.ts
Niklas Mischkulnig c74d3b30ca Support compiler.removeConsole with Turbopack (#67849)
Should `remove_console` and `react_remove_properties` be dependencies of
the `next-next` crate
or reuse the dependencies from `next-custom-transforms`?
2024-07-18 13:05:52 +02:00

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',
})
})
})