mirror of
https://github.com/denoland/deno.git
synced 2025-12-23 08:48:24 +00:00
Previously, Deno throws error when creating `Buffer.allocUnsafe` or `Buffer.allocUnsafeSlow` with size of `2**31` where that's not the case with Node.js. The changes allow these tests to pass: - [test-buffer-large-size-buffer-alloc-unsafe-slow.js](https://github.com/nodejs/node/blob/v24.2.0/test/pummel/test-buffer-large-size-buffer-alloc-unsafe-slow.js) - [test-buffer-large-size-buffer-alloc-unsafe.js](https://github.com/nodejs/node/blob/v24.2.0/test/pummel/test-buffer-large-size-buffer-alloc-unsafe.js) - [test-string-decoder-large-buffer.js](https://github.com/nodejs/node/blob/v24.2.0/test/pummel/test-string-decoder-large-buffer.js) <!-- Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing 1. Give the PR a descriptive title. Examples of good title: - fix(std/http): Fix race condition in server - docs(console): Update docstrings - feat(doc): Handle nested reexports Examples of bad title: - fix #7123 - update docs - fix bugs 2. Ensure there is a related issue and it is referenced in the PR text. 3. Ensure there are tests that cover the changes. 4. Ensure `cargo test` passes. 5. Ensure `./tools/format.js` passes without changing files. 6. Ensure `./tools/lint.js` passes. 7. Open as a draft PR if your work is still in progress. The CI won't run all steps, but you can add '[ci]' to a commit message to force it to. 8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label. --> |
||
|---|---|---|
| .. | ||
| runner | ||
| .gitignore | ||
| add_day_summary_to_month_summary.ts | ||
| common.ts | ||
| config.toml | ||
| deno.json | ||
| README.md | ||
| run_all_test_unmodified.ts | ||
| slack.ts | ||
| test.ts | ||
| test_runner.rs | ||
Node compat test directory
This directory includes the tools for running Node.js test cases directly in Deno.
- ./runner/suite/ - vendored Node.js test cases (git submodule at https://github.com/denoland/node_test)
- ./config.toml - has the list of passing Node.js test cases
- ./test.ts - The script entrypoint of node compat test.
If you run single node.js test case, use the command:
./tools/node_compat_tests.js --filter <name of test file>
Add test case entry to CI check
If you fixed some Node.js compabitility and some test cases started passing,
then add those cases to config.toml. The items listed in there are checked in
CI check.
Daily test viewer
To see the latest test results of all test cases, visit this site https://node-test-viewer.deno.dev/results/latest