Fix dart/flutter stack trace parsing

This commit is contained in:
Michal Dorner 2021-02-01 16:09:01 +01:00
parent 2834fd0c5f
commit effa386fea
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
6 changed files with 38 additions and 25 deletions

View file

@ -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()