Skip to content

Commit

Permalink
Replace jest with node:test (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 authored Nov 23, 2024
2 parents e5dcc64 + 6fd344d commit 7f44f0f
Show file tree
Hide file tree
Showing 13 changed files with 407 additions and 6,701 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
container_tag:
# - "current"
- "lts"
- "20"
- "22"
fail-fast: false

runs-on: ubuntu-latest
Expand All @@ -39,7 +39,7 @@ jobs:
container_tag:
# - "current"
- "lts"
- "20"
- "22"
fail-fast: false

runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions integrate_tests/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const __filename = url.fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

describe('CLI exec with no option should complete', () => {
const fixtureDir = path.resolve(__dirname, "../__tests__/fixtures/")
const fixtureDir = path.resolve(__dirname, "../tests/fixtures/")
for (const file of fs.readdirSync(fixtureDir)) {
test(file, (_t, done) => {
exec("node ./dist/esm/cli.js " + path.join(fixtureDir, file), (error, _stdout, _stderr) => {
Expand All @@ -20,7 +20,7 @@ describe('CLI exec with no option should complete', () => {
});

test('CLI exec with --filter-tags', (_t, done) => {
exec("node ./dist/esm/cli.js --filter-tags system-out __tests__/fixtures/android-robolectric-success.xml", (_error, stdout, _stderr) => {
exec("node ./dist/esm/cli.js --filter-tags system-out tests/fixtures/android-robolectric-success.xml", (_error, stdout, _stderr) => {
const output = JSON.parse(stdout)
assert.ok(!output["system-out"], "system-out should not be present")
assert.ok(output["system-err"], "system-err should be present")
Expand Down
15 changes: 0 additions & 15 deletions jest.config.mjs

This file was deleted.

Loading

0 comments on commit 7f44f0f

Please sign in to comment.