next.js/test/e2e/app-dir/webpack-loader-binary/webpack-loader-binary.test.ts
webpack-loader-binary.test.ts17 lines474 B
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')
  })
})
Quest for Codev2.0.0
/
SIGN IN