zowe / zowe-cli-sample-plugin

Plugin Tutorial for Zowe CLI
Other
10 stars 15 forks source link

Tests fails when mocking fs.readFileSync #55

Open zFernand0 opened 4 years ago

zFernand0 commented 4 years ago

The test failure has been address in the CLI repo by properly mocking fs.readFileSync but allowing yargs to use the real implementation. See https://github.com/zowe/zowe-cli/blob/master/__mocks__/fs.ts#L52-L55

Originally posted by @zFernand0 in https://github.com/zowe/zowe-cli-sample-plugin/pull/53#issuecomment-713636640