Skip to content

Commit

Permalink
test: ensure only one runtime is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstork committed Oct 16, 2024
1 parent 4c6705d commit 10fd6ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/build-info/src/runtime/erlang.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test('detects erlang when rebar.config is present', async ({ fs }) => {
})

const detected = await new Project(fs, cwd).detectRuntime()
expect(detected.length).toBe(1)
expect(detected[0].name).toBe('Erlang')
})

Expand All @@ -23,5 +24,6 @@ test('detects erlang when rebar.lock is present', async ({ fs }) => {
})

const detected = await new Project(fs, cwd).detectRuntime()
expect(detected.length).toBe(1)
expect(detected[0].name).toBe('Erlang')
})

0 comments on commit 10fd6ce

Please sign in to comment.