We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40616d8 commit 6282673Copy full SHA for 6282673
test/helpers/exit.js
@@ -41,17 +41,17 @@ export const stubProcessClock = function () {
41
return fakeTimers.install({ toFake: ['setTimeout'] })
42
}
43
44
-// Stub `process.exit()`
45
-export const stubProcessExit = function () {
46
- sinon.stub(process, 'exit')
47
-}
48
-
49
export const unStubProcessClock = function (clock) {
50
unStubProcessExit()
51
clock.uninstall()
52
53
54
-export const unStubProcessExit = function () {
+// Stub `process.exit()`
+const stubProcessExit = function () {
+ sinon.stub(process, 'exit')
+}
+
+const unStubProcessExit = function () {
55
process.exit.restore()
56
process.exitCode = undefined
57
0 commit comments