Skip to content

Commit

Permalink
test: make test runs unique
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jun 12, 2018
1 parent e26ab21 commit 79fbf96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/s3-update-example-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"bucket": "oclif-staging"
},
"node": {
"version": "9.11.1",
"version": "10.4.0",
"targets": [
"darwin-x64",
"linux-x64",
Expand Down
3 changes: 2 additions & 1 deletion test/commands/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('update', () => {
process.env.YARN_CACHE_FOLDER = path.resolve('tmp', 'yarn')
await qq.rm(process.env.YARN_CACHE_FOLDER)
const pjson = await qq.readJSON('package.json')
pjson.oclif.bin = `s3-update-example-cli-${Math.floor(Math.random() * 100000)}`
delete pjson.dependencies['@oclif/plugin-update']
await qq.writeJSON('package.json', pjson)

Expand All @@ -33,7 +34,7 @@ describe('update', () => {
}
const checkVersion = async (version: string, nodeVersion = pjson.oclif.update.node.version) => {
const stdout = await qq.x.stdout('./tmp/example-cli/bin/example-cli', ['version'])
expect(stdout).to.equal(`s3-update-example-cli/${version} ${process.platform}-${process.arch} node-v${nodeVersion}`)
expect(stdout).to.equal(`${pjson.oclif.bin}/${version} ${process.platform}-${process.arch} node-v${nodeVersion}`)
}
const update = async (channel?: string) => {
const f = 'tmp/example-cli/package.json'
Expand Down

0 comments on commit 79fbf96

Please sign in to comment.