mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
Fix dart/flutter stack trace parsing
This commit is contained in:
parent
2834fd0c5f
commit
effa386fea
6 changed files with 38 additions and 25 deletions
|
|
@ -19,7 +19,7 @@ describe('dart-json tests', () => {
|
|||
const filePath = normalizeFilePath(path.relative(__dirname, fixturePath))
|
||||
const fileContent = fs.readFileSync(fixturePath, {encoding: 'utf8'})
|
||||
|
||||
const parser = new DartJsonParser(opts)
|
||||
const parser = new DartJsonParser(opts, 'dart')
|
||||
const result = await parser.parse(filePath, fileContent)
|
||||
expect(result).toMatchSnapshot()
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ describe('dart-json tests', () => {
|
|||
workDir: '/__w/provider/provider/'
|
||||
}
|
||||
|
||||
const parser = new DartJsonParser(opts)
|
||||
const parser = new DartJsonParser(opts, 'flutter')
|
||||
const result = await parser.parse(filePath, fileContent)
|
||||
expect(result).toMatchSnapshot()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue