We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
loadFixture
It'd be create if we could just fs.readFileSync at the top of tests and let babel-plugin-static-fs or similar figure it out for the browser.
fs.readFileSync
babel-plugin-static-fs
Not sure why we felt the need to invent our own version.
The text was updated successfully, but these errors were encountered:
There is this idea of loading fixtures from dependencies, as in:
loadFixture('test/foo/bar.txt', 'some-dep')
but see also: require.resolve
require.resolve
fs.readFileSync(require.resolve('some-dep/test/foo/bar.txt'))
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It'd be create if we could just
fs.readFileSync
at the top of tests and letbabel-plugin-static-fs
or similar figure it out for the browser.Not sure why we felt the need to invent our own version.
The text was updated successfully, but these errors were encountered: