Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2009 from snyk/test/migrate-package-no-name-test
test: migrate package-no-name test to jest
- Loading branch information
Showing
2 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { createProject } from '../../util/createProject'; | ||
import { requireSnykToken } from '../../util/requireSnykToken'; | ||
import { runSnykCLI } from '../../util/runSnykCLI'; | ||
|
||
jest.setTimeout(1000 * 60); | ||
|
||
test('packages with no name read dir', async () => { | ||
const project = await createProject('package-sans-name'); | ||
const { code } = await runSnykCLI('test', { | ||
cwd: project.path(), | ||
env: { | ||
...process.env, | ||
SNYK_TOKEN: requireSnykToken(), | ||
}, | ||
}); | ||
expect(code).toEqual(1); | ||
}); | ||
|
||
test('packages with no name read dir with a lockfile', async () => { | ||
const project = await createProject('package-sans-name-lockfile'); | ||
const { code } = await runSnykCLI('test', { | ||
cwd: project.path(), | ||
env: { | ||
...process.env, | ||
SNYK_TOKEN: requireSnykToken(), | ||
}, | ||
}); | ||
expect(code).toEqual(1); | ||
}); |
This file was deleted.
Oops, something went wrong.