test-exclude:使用glob测试路径的包含或排除

时间:2021-05-09 12:54:14
【文件属性】:
文件名称:test-exclude:使用glob测试路径的包含或排除
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-09 12:54:14
JavaScript 测试排除 该文件包含/排除和使用的逻辑。 用法 const TestExclude = require ( 'test-exclude' ) ; const exclude = new TestExclude ( ) ; if ( exclude ( ) . shouldInstrument ( './foo.js' ) ) { // let's instrument this file for test coverage! } TestExclude(选项) test-exclude构造函数接受一个options对象。 默认值来自 。 options.cwd 这是执行所有比较的基本目录。 不包括cwd以外的文件。 默认值: process.cwd() options.exclude 要忽略的路径问题数组。 请注意,此列表不包括单独添加的node_modules 。 有关默
【文件预览】:
test-exclude-master
----.gitignore(42B)
----package.json(943B)
----.npmrc(19B)
----tap-snapshots()
--------test-glob.js-TAP.test.js(2KB)
----.travis.yml(93B)
----index.js(5KB)
----CHANGELOG.md(12KB)
----LICENSE.txt(731B)
----.github()
--------FUNDING.yml(29B)
----is-outside-dir-posix.js(147B)
----README.md(4KB)
----.taprc(40B)
----is-outside-dir.js(174B)
----nyc.config.js(427B)
----is-outside-dir-win32.js(239B)
----test()
--------glob.js(2KB)
--------test-exclude.js(7KB)
--------fixtures()

网友评论