Skip to content

Commit

Permalink
Merge pull request #11 from hckrnews/feature/timeout-error
Browse files Browse the repository at this point in the history
Use jest globals
  • Loading branch information
w3nl committed Oct 11, 2021
2 parents 48e0578 + cd5fd71 commit 737de91
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@hckrnews/error",
"description": "Extended Errors",
"version": "0.2.5",
"version": "0.2.6",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
Expand Down Expand Up @@ -33,6 +33,7 @@
"@babel/eslint-parser": "^7.14.7",
"@babel/plugin-transform-modules-commonjs": "^7.14.0",
"@babel/preset-env": "^7.9.5",
"@jest/globals": "^27.0.6",
"@hckrnews/eslint-config": "^2.0.1",
"babel-jest": "^27.0.5",
"codecov": "^3.6.5",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/app-error.unit.js
@@ -1,4 +1,4 @@
/** global: describe */
import { expect, describe, it } from '@jest/globals';
import { AppError } from '../index.js';

describe('App Error test', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/not-found-error.unit.js
@@ -1,4 +1,4 @@
/** global: describe */
import { expect, describe, it } from '@jest/globals';
import { NotFoundError } from '../index.js';

describe('Not Found Error test', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/not-implemented-error.unit.js
@@ -1,4 +1,4 @@
/** global: describe */
import { expect, describe, it } from '@jest/globals';
import { NotImplementedError } from '../index.js';

describe('Not Implemented Error test', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/server-error.unit.js
@@ -1,4 +1,4 @@
/** global: describe */
import { expect, describe, it } from '@jest/globals';
import { ServerError } from '../index.js';

describe('Server Error test', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/timeout-error.unit.js
@@ -1,4 +1,4 @@
/** global: describe */
import { expect, describe, it } from '@jest/globals';
import { TimeoutError } from '../index.js';

describe('Timeout Error test', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/validation-error.unit.js
@@ -1,4 +1,4 @@
/** global: describe */
import { expect, describe, it } from '@jest/globals';
import { ValidationError } from '../index.js';

describe('Validation Error test', () => {
Expand Down
1 change: 1 addition & 0 deletions src/app-error.js
@@ -1,3 +1,4 @@
/** global: validator */
import Validator from '@hckrnews/validator';
import errorSchema from './schemas/error.js';

Expand Down

0 comments on commit 737de91

Please sign in to comment.