Skip to content

Commit

Permalink
[Test] Enable unit test suite: schema_error.test.ts (#486) (#488)
Browse files Browse the repository at this point in the history
Schema_error.test.ts is skipped due to no decision around error
handling and it fails depending on Node version in 2017. There are
some possible reasons: 1) nodejs is bumps to 8 in 2018 which
affected error handling 2) boom is used to handle http errors which
is also dependent on nodejs version. Since we forked from v7.10.2
which has a stable nodejs v10.23.1, we will enable this unit test.

Signed-off-by: Anan Zhuang <[email protected]>
  • Loading branch information
ananzh authored Jun 22, 2021
1 parent 4293f92 commit 1cf9a7a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.

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

6 changes: 1 addition & 5 deletions packages/osd-config-schema/src/errors/schema_error.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ export const cleanStack = (stack: string) =>
})
.join('\n');

// TODO This is skipped because it fails depending on Node version. That might
// not be a problem, but I think we should wait with including this test until
// we've made a proper decision around error handling in the new platform, see
// https://github.com/elastic/kibana/issues/12947
test.skip('includes stack', () => {
it('includes stack', () => {
try {
throw new SchemaError('test');
} catch (e) {
Expand Down

0 comments on commit 1cf9a7a

Please sign in to comment.