mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-03 19:55:22 -08:00
Fix dart/flutter stack trace parsing
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user