Skip to content

Commit

Permalink
Merge pull request #331 from dorny/fix-build
Browse files Browse the repository at this point in the history
Fix build error
  • Loading branch information
dorny authored Dec 9, 2023
2 parents be0e2e9 + 62b89ea commit 601ab2b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
6 changes: 1 addition & 5 deletions __tests__/swift-xunit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ describe('swift-xunit tests', () => {
const filePath = normalizeFilePath(path.relative(__dirname, fixturePath))
const fileContent = fs.readFileSync(fixturePath, {encoding: 'utf8'})

const trackedFiles = [
'Package.swift',
'Sources/AcmeLib/AcmeLib.swift',
'Tests/AcmeLibTests/AcmeLibTests.swift',
]
const trackedFiles = ['Package.swift', 'Sources/AcmeLib/AcmeLib.swift', 'Tests/AcmeLibTests/AcmeLibTests.swift']
const opts: ParseOptions = {
parseErrors: true,
trackedFiles
Expand Down
22 changes: 22 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions src/parsers/dart-json/dart-json-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ import {
} from '../../test-results'

class TestRun {
constructor(readonly path: string, readonly suites: TestSuite[], readonly success: boolean, readonly time: number) {}
constructor(
readonly path: string,
readonly suites: TestSuite[],
readonly success: boolean,
readonly time: number
) {}
}

class TestSuite {
Expand Down Expand Up @@ -74,7 +79,10 @@ class TestCase {
export class DartJsonParser implements TestParser {
assumedWorkDir: string | undefined

constructor(readonly options: ParseOptions, readonly sdk: 'dart' | 'flutter') {}
constructor(
readonly options: ParseOptions,
readonly sdk: 'dart' | 'flutter'
) {}

async parse(path: string, content: string): Promise<TestRunResult> {
const tr = this.getTestRun(path, content)
Expand Down

0 comments on commit 601ab2b

Please sign in to comment.