Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Mar 25, 2022
1 parent f5f33f8 commit 134faee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"format": "virmator format write",
"prepublishOnly": "npm run test:full",
"spellcheck": "virmator spellcheck --extendable-config",
"test": "virmator compile && virmator test --runInBand",
"test": "virmator compile && virmator test --runInBand --no-write-config",
"test:full": "npm test && npm run spellcheck && virmator format check"
},
"dependencies": {
Expand Down
12 changes: 10 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ const signals: InterceptedSignals[] = [
'SIGQUIT',
];
/** The different signal types that can be passed to the exit callback. */
export const catchSignalStrings: CatchSignals[] = [...signals, 'exit', 'uncaughtException'];
export const catchSignalStrings: CatchSignals[] = [
...signals,
'exit',
'uncaughtException',
];

function stringifyError(error: unknown): string {
if (customStringifyError) {
Expand Down Expand Up @@ -149,7 +153,11 @@ function logError(value: string): void {

const callbacks: ExitCallback[] = [];
// not sure what all the different async types mean but I seem to not care about at least these
const ignoredAsyncTypes = ['TTYWRAP', 'SIGNALWRAP', 'PIPEWRAP'];
const ignoredAsyncTypes = [
'TTYWRAP',
'SIGNALWRAP',
'PIPEWRAP',
];

const asyncHook = createHook({
init(id, type) {
Expand Down

0 comments on commit 134faee

Please sign in to comment.