chai-fs
chai-fs copied to clipboard
Chai assertions for Node.js filesystem
`.to.not.be.a.file()` does not work, returns true, even if the file is not existing, example: ``` js expect( path.join( __dirname, './tmp/lessReduce/root.css' ) ).to.not.be.a.file(); ``` ... but the file is definitely not...
In my case, this is causing issues with `chai-spies`. For example, this passes fine: ```js let spies = require("chai-spies"); let fs = require("chai-fs"); let chai = require("chai"); chai.use(fs).use(spies); let {...
Is this the right behavior ? ```javascript // existentDir is a directory that exists expect(existentDir).to.be.a.directory() => true, ok // nonExistentDir is a directory that doesn't exists expect(nonExistentDir).to.not.be.a.path() => true, ok...
When using the following line, Webstorm's debugging of mocha tests fails with an exit code of 130. ``` chai.use(require('chai-fs')) ``` The only workaround I've found thus far is to remove...