-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* also update dependencies * remove jest related files
- Loading branch information
Showing
26 changed files
with
1,230 additions
and
2,577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ lib/**/* | |
|
||
# Dependency directory | ||
node_modules | ||
|
||
.yarn/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { spawnSync } from 'child_process'; | ||
import path from 'path'; | ||
import type { Environment } from 'vitest/environments'; | ||
|
||
export default <Environment>{ | ||
name: 'server', | ||
transformMode: 'ssr', | ||
setup() { | ||
spawnSync(path.join(__dirname, 'start_container.sh'), { | ||
stdio: 'inherit', | ||
}); | ||
|
||
spawnSync('docker', ['exec', 'integration', '/usr/local/bin/backup-db'], { | ||
stdio: 'inherit', | ||
}); | ||
|
||
return { | ||
teardown() { | ||
spawnSync( | ||
'docker', | ||
['exec', 'integration', '/usr/local/bin/restore-db'], | ||
{ | ||
stdio: 'inherit', | ||
}, | ||
); | ||
spawnSync(path.join(__dirname, 'stop_container.sh'), { | ||
stdio: 'inherit', | ||
}); | ||
}, | ||
}; | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
// @vitest-environment bugzilla-environment | ||
|
||
import { afterEach, beforeEach, expect, test } from 'vitest'; | ||
|
||
import BugzillaAPI from '../../src'; | ||
|
||
let api: BugzillaAPI; | ||
|
@@ -41,14 +45,14 @@ test('Create comment', async () => { | |
test('getComment', async () => { | ||
await expect(api.getComment(3)).resolves.toEqual({ | ||
attachment_id: null, | ||
bug_id: 3, | ||
count: 0, | ||
bug_id: 1, | ||
count: 1, | ||
creation_time: expect.anything(), | ||
creator: '[email protected]', | ||
id: 3, | ||
is_private: false, | ||
tags: [], | ||
text: 'This is a test bug', | ||
text: 'First comment!', | ||
time: expect.anything(), | ||
}); | ||
}); | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ | |
"types": "dist/index.d.ts", | ||
"typings": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "tsc -b tsconfig.build.json", | ||
"build": "tsc", | ||
"format": "prettier --write .", | ||
"format-check": "prettier --check .", | ||
"test": "jest", | ||
"itest": "jest -c itest/jest.config.js", | ||
"update-snapshots": "jest --updateSnapshot", | ||
"test": "vitest run --coverage", | ||
"all": "yarn run build && yarn run format-check && yarn run test", | ||
"update-snapshots": "vitest run --update", | ||
"prepack": "yarn run build", | ||
"version": "node scripts/version.js && git add CHANGELOG.md", | ||
"postversion": "node scripts/post-version.js && git add CHANGELOG.md && git commit -m 'Update CHANGELOG.md'" | ||
|
@@ -34,19 +34,17 @@ | |
}, | ||
"homepage": "https://github.com/redhat-plumbers-in-action/bugzilla#readme", | ||
"devDependencies": { | ||
"@mossop/config": "1.4.1", | ||
"@types/jest": "29.5.12", | ||
"@types/luxon": "3.4.2", | ||
"@types/node": "20.12.11", | ||
"jest": "29.7.0", | ||
"msw": "2.3.0", | ||
"prettier": "3.2.5", | ||
"ts-jest": "29.1.2", | ||
"typescript": "5.4.5" | ||
"@types/node": "22.9.1", | ||
"@vitest/coverage-v8": "^2.1.5", | ||
"msw": "2.6.5", | ||
"prettier": "3.3.3", | ||
"typescript": "5.6.3", | ||
"vitest": "^2.1.5" | ||
}, | ||
"dependencies": { | ||
"axios": "1.6.8", | ||
"luxon": "3.4.4" | ||
"axios": "1.7.7", | ||
"luxon": "3.5.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.