1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-05-18 12:02:53 +02:00

perf: run tests in parallel

fixes #12
This commit is contained in:
Divlo
2022-09-22 16:16:21 +02:00
parent d6a6c706ce
commit 64d71d6920
18 changed files with 781 additions and 704 deletions

View File

@ -5,7 +5,7 @@ import sinon from 'sinon'
import chalk from 'chalk'
import { cli } from '../../../cli.js'
import { Test } from '../../../services/Test.js'
import { SolutionTestsResult } from '../../../services/SolutionTestsResult.js'
const input = ['run', 'test']
const challenge = 'hello-world'
@ -46,7 +46,7 @@ await tap.test('programming-challenges run test', async (t) => {
),
true
)
t.equal(consoleLogSpy.calledWith(Test.SUCCESS_MESSAGE), true)
t.equal(consoleLogSpy.calledWith(SolutionTestsResult.SUCCESS_MESSAGE), true)
})
await t.test("fails with solution that doesn't exist", async (t) => {