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")`
18 lines
423 B
TypeScript
18 lines
423 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('webpack-loader-fs', () => {
|
|
const { next, skipped } = nextTestSetup({
|
|
files: __dirname,
|
|
skipDeployment: true,
|
|
})
|
|
|
|
if (skipped) return
|
|
|
|
it('should allow reading the input FS', async () => {
|
|
const $ = await next.render$('/')
|
|
expect($('#test').text()).toBe(
|
|
"Buffer read: 18, string read: 'this is some data', binary read: 6765"
|
|
)
|
|
})
|
|
})
|