Skip to content

Commit

Permalink
Add comment to exitCode cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Sep 14, 2023
1 parent 456ffb9 commit 12bf104
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/add-assembly.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const baseSequence = {
adapter: {},
}

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('add-assembly', () => {
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/add-connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const setupWithDateMock = setup
Date.now = originalDateNow
})

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('add-connection', () => {
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/add-track.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function init2bit(ctx: { dir: string }) {
)
}

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('add-track', () => {
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/admin-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async function killExpress({ stdout }: { stdout: string }) {
})
}

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('admin-server', () => {
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function mockWrongSite(exampleSite: Scope) {
.reply(200, 'I am the wrong type', { 'Content-Type': 'application/json' })
}

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('create', () => {
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/remove-track.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { setup, readConf } from '../testUtil'

const twoPath = path.join(__dirname, '..', '..', 'test', 'data', 'simple.2bit')

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('add-assembly', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const setupWithAddTrack = setup
})
.command(['add-track', simpleBam, '--load', 'copy'])

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('set-default-session', () => {
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/text-index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ function verifyIxxFiles(ctx: string, base = 'volvox') {
expect(ixxdata).toMatchSnapshot()
}

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

// Base text index command
Expand Down
1 change: 1 addition & 0 deletions products/jbrowse-cli/src/commands/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function mockV2Zip(exampleSite: Scope) {
)
}

// Cleaning up exitCode in Node.js 20, xref https://github.com/jestjs/jest/issues/14501
afterAll(() => (process.exitCode = 0))

describe('upgrade', () => {
Expand Down

0 comments on commit 12bf104

Please sign in to comment.