aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-internal-test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-29BumpGravatar Jarred Sumner 1-0/+0
2023-06-18Make more tests failGravatar Jarred Sumner 1-0/+10
2023-05-31Small improvements to `bun test` (#3071)Gravatar Ashcon Partovi 2-82/+3
* Change status icon for skipped tests from "-" to "ยป" * Show file path instead of filename in `bun test` * Emit collapsable logs when running `bun test` in Github Actions https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#grouping-log-lines * Add fallback for test icons when emojis are not available * Only check for GITHUB_ACTIONS when running `bun test` * Emit error annotations when running `bun test` in Github Actions https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message * Remove ANSI output from Github annotation, it doesn't work * Remove outdated code from internal test runner * Add GithubActionFormatter to handle cases where error name or message is already ANSI * Fix formatting of test * Fix #3070 * Implement `bun test --run-todo` By default, `test.todo()` is no longer run, unless `--run-todo` is specified. * Fix test that relies on test.todo() being run * Support vitest-style test options * Disable GITHUB_ACTION in test harness * Add types for TestOptions * Fix bug where test.skip() actually ran * Implement `test.skipIf()` and `describe.skipIf()` * Implement `test.runIf()` * Move DiffFormatter to its own file * Fix bug where Bun.inspect() would emit a Github annotation * Introduce `bun test --only`, rename `--run-todo` to `--todo` * Implement `test.if()`, `describe.if()`, and other test fixes * Remove unwanted files from last commit * Fix last reference to --run-todo * Fix memory issues with printing github actions text * Update bindings.zig * Fix bug with `test.only()` * Remove debug test * Make the github annotations better * Improve .vscode/launch.json * Implement `expect().toBeNil()` * Remove .only() from test * Implement toBeBoolean(), toBeTrue(), toBeFalse() * Add lots of matchers * toBeNil() * toBeBoolean() * toBeTrue() * toBeFalse() * toBeNumber() * toBeInteger() * toBeFinite() * toBePositive() * toBeNegative() * toBeWithin() * toBeSymbol() * toBeFunction() * toBeDate() * toBeString() * toInclude() * toStartWith() * toEndWith() * Fix #3135 * Reduce verbosity of test * Fix snapshot bug --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-23Support test.todo() in ecosystem runnerGravatar Ashcon Partovi 6-292/+430
2023-05-05[ci] Fix broken test runnerGravatar Jarred Sumner 2-1/+3
cc @Electroid we need `@actions/core` to be installed in node_modules
2023-05-04Actually fix the `git clone` URLGravatar Ashcon Partovi 1-1/+1
2023-05-04Use HTTPS instead of SSH for `git clone` in ecosystem testsGravatar Ashcon Partovi 1-1/+1
2023-05-04Add initial ecosystem tests (#2801)Gravatar Ashcon Partovi 19-16/+3271
* Add initial ecosystem tests * Run ecosystem tests every morning, after canary release
2023-04-20Update runner.node.mjsGravatar Jarred Sumner 1-15/+20
2023-04-01Add stubs for missing node builtins (#2534)Gravatar Jarred Sumner 1-1/+1
* Stub `node:v8` * Stub `node:trace_events` * Stub `node:repl` * Stub `node:inspector` * Stub `node:http2` * Stub `node:diagnostics_channel` * Stub `node:dgram` * Stub `node:cluster` * Link stubs * cleanup * Clean up the test * Implement `node:vm` stub * Cleanup `v8` module stub * Add missing `promises` export to node:stream * Implement `node:stream/promise` * Implement `node:assert/strict` * cleanup * better errors * Increaase timeout * Update inspector.exports.js * Make the version consistent * Implement `process.binding("constants")` * Update runner.node.mjs --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-31report timed-out test as failure (#2523)Gravatar Alex Lam S.L 1-8/+9
2023-03-08Fix bug in test runnerGravatar Jarred Sumner 1-1/+1
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 4-96/+4
2023-03-05Test action comment (#2310)Gravatar Jarred Sumner 2-28/+65
* test * Update bun-linux-build.yml * fixup * Update bun-linux-build.yml * Use outputs * set id * Update bun-linux-build.yml * Update runner.node.mjs * Update runner.node.mjs * wip (will revert) * Update runner.node.mjs * Update runner.node.mjs * Update runner.node.mjs * Update runner.node.mjs * Update bun-linux-build.yml * Update bun-linux-build.yml * works well enough for now --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-03-04dump failing tests to diskGravatar Jarred Sumner 2-3/+16
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-7/+15
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-1/+4
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-3/+17
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-28/+3
2023-03-04Update runner.node.mjsGravatar Jarred Sumner 1-3/+28
2023-03-04Add node runnerGravatar Jarred Sumner 1-0/+80
2023-03-04Update runner.tsGravatar Jarred Sumner 1-3/+6
2023-03-04chdirGravatar Jarred Sumner 1-1/+2
2023-03-04fixupGravatar Jarred Sumner 1-7/+5
2023-03-04Rename packages/bun-test to packages/bun-internal-testGravatar Jarred Sumner 6-0/+125