mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Recent sass-loader versions use this heavily: `this.getResolver()(..., "/Users/foo/..../bar.scss")`
17 lines
474 B
TypeScript
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')
|
|
})
|
|
})
|