Skip to content

Commit 54850a9

Browse files
committed
refactor: allow test suite files to be a string or an array
1 parent b83078c commit 54850a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test_runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class TestRunner {
7373
this.#options.suites
7474
.filter((suite) => {
7575
if (this.#options.filters.suites) {
76-
this.#options.filters.suites.includes(suite.name)
76+
return this.#options.filters.suites.includes(suite.name)
7777
}
7878

7979
return true

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type MetaFile = {
3737
* Test suite defined in ".adonisrc.json" file
3838
*/
3939
export type Suite = {
40-
files: string[]
40+
files: string | string[]
4141
name: string
4242
}
4343

0 commit comments

Comments
 (0)