Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 9, 2025
1 parent b232977 commit 59f70ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/programmatic/detect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ afterAll(() => {

const agents = [...AGENTS, 'unknown']
const fixtures = ['lockfile', 'packager']
const skippedAgents = ['deno']

// matrix testing of: fixtures x agents
fixtures.forEach(fixture => describe(fixture, () => agents.forEach((agent) => {
if (skippedAgents.includes(agent))
return it.skip(`skipped for ${agent}`, () => {})

it(agent, detectTest(fixture, agent))

it('no logs', () => {
Expand Down
4 changes: 4 additions & 0 deletions test/programmatic/runCli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ afterAll(() => {

const agents = [...AGENTS, 'unknown']
const fixtures = ['lockfile', 'packager']
const skippedAgents = ['deno']

// matrix testing of: fixtures x agents x commands
fixtures.forEach(fixture => describe(fixture, () => agents.forEach(agent => describe(agent, () => {
if (skippedAgents.includes(agent))
return it.skip(`skipped for ${agent}`, () => {})

/** na */
it('na', runCliTest(fixture, agent, parseNa, []))
it('na run foo', runCliTest(fixture, agent, parseNa, ['run', 'foo']))
Expand Down

0 comments on commit 59f70ff

Please sign in to comment.