feat: Error standardization (#20323)

* refactor: reworking client-side error shape

* feat: add the CodeFrame to baseerror

* consolidate baseError handling, type fixes

* Fix UNIFY-1164 w/ test cleanup to avoid intercepting

* fix types, cleanup based on review / Brian

* fix: imports / types / tests

* cleanup tests, fix TSError location, add reinitializeCypress mutation

* fix: show correct stack trace file name (#20410)

* Improve comments for regexes / TSError capture

* feat: Add codeframe to error, address PR comments

* update snapshot

* change codeframe impl, per Brian's request

* Attempt to fix test flake

Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Alejandro Estrada <estrada9166@hotmail.com>
This commit is contained in:
Tim Griesser
2022-03-02 18:03:52 -05:00
committed by GitHub
parent 7b14fd08d1
commit 92eac2f67e
110 changed files with 1520 additions and 635 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
import chokidar from 'chokidar'
import path from 'path'
import fs from 'fs-extra'
import _ from 'lodash'
import { monorepoPaths } from '../monorepoPaths'
@@ -43,7 +44,7 @@ ${allDirs
export async function e2eTestScaffoldWatch () {
const fixtureWatcher = chokidar.watch(PROJECT_FIXTURE_DIRECTORY, {
cwd: monorepoPaths.pkgServer,
cwd: monorepoPaths.root,
// ignoreInitial: true,
depth: 0,
})
@@ -52,9 +53,9 @@ export async function e2eTestScaffoldWatch () {
e2eTestScaffold()
})
fixtureWatcher.on('addDir', () => {
fixtureWatcher.on('addDir', _.debounce(() => {
e2eTestScaffold()
})
}))
await e2eTestScaffold()
}