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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
../test/456 => 999999999999999\n
../test/456
999999999999999\n
=========
import { fs as memfs, vol, Volume, createFsFromVolume, IFs } from 'memfs'; import { ufs } from 'unionfs'; import * as fsNode from 'fs'; let vol2 = Volume.fromJSON({ '../test': null, }, ); let memfs2 = createFsFromVolume(vol2); export const fs: IFs = ufs .use(fsNode) .use(memfs2) ; console.log(1, fs.readFileSync('../test/456').toString()); fs.appendFileSync('../test/456', '123'); console.log(2, fs.readFileSync('../test/456').toString());
expect is 999999999999999\n123 but got 123 only at step 2
999999999999999\n123
123
The text was updated successfully, but these errors were encountered:
@bluelovers swapping the order of the use
export const fs: IFs = ufs .use(memfs2) .use(fsNode)
or removing the fake mem directory
let vol2 = Volume.fromJSON({});
works
Sorry, something went wrong.
No branches or pull requests
real file
../test/456
=>999999999999999\n
=========
expect is
999999999999999\n123
but got123
only at step 2The text was updated successfully, but these errors were encountered: