Files
Niklas MischkulnigandGitHub 32acdc03e8 Turbopack: absolute requests in webpack loader (#84575)
Recent sass-loader versions use this heavily: `this.getResolver()(..., "/Users/foo/..../bar.scss")`
2025-10-07 16:02:01 +02:00

17 lines
474 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('webpack-loader-ts-transform', () => {
const { next, skipped } = nextTestSetup({
files: __dirname,
skipDeployment: true,
})
if (skipped) return
it('should allow passing binary assets to and from a Webpack loader', async () => {
const $ = await next.render$('/')
expect($('#text').text()).toBe('Got a buffer of 18 bytes')
expect($('#binary').text()).toBe('Got a buffer of 6765 bytes')
})
})