Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(node): get test-assert.js working #15698

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Conversation

DonIsaac
Copy link
Contributor

@DonIsaac DonIsaac commented Dec 11, 2024

What does this PR do?

  • Overhauls node:assert to better match node's behavior
  • Adds test-assert.js to the list of passing node test cases

Upstack from #15697

How did you verify your code works?

I ported node test cases.

@robobun
Copy link

robobun commented Dec 11, 2024

❌ Your commit 0144be6 has 12 failures in #7936:

  • test/js/bun/http/serve.test.ts - 2 failing on 🍎 14 x64
  • test/js/bun/http/serve.test.ts - 2 failing on 🍎 13 x64
  • test/v8/v8.test.ts - 22 failing on 🐧 3.20 aarch64
  • test/v8/v8.test.ts - timeout on 🐧 22.04 aarch64
  • test/v8/v8.test.ts - 22 failing on 🐧 3.20 x64
  • test/v8/v8.test.ts - 22 failing on 🐧 3.20 x64-baseline
  • test/cli/install/registry/bun-install-registry.test.ts - timeout on 🐧 22.04 aarch64
  • test/cli/install/registry/bun-install-registry.test.ts - timeout on 🐧 12 aarch64
  • test/cli/run/require-cache.test.ts - 1 failing on 🐧 24.04 x64
  • test/cli/run/require-cache.test.ts - 1 failing on 🐧 12 x64
  • test/cli/run/require-cache.test.ts - 1 failing on 🐧 22.04 x64-baseline
  • test/cli/run/require-cache.test.ts - 1 failing on 🐧 3.20 aarch64
  • test/cli/run/require-cache.test.ts - 1 failing on 🐧 3.20 x64-baseline
  • test/cli/run/require-cache.test.ts - 1 failing on 🍎 14 x64
  • test/cli/run/require-cache.test.ts - 1 failing on 🍎 13 x64
  • test/js/node/test/parallel/test-async-hooks-worker-asyncfn-terminate-4.js - code 1 on 🐧 20.04 aarch64
  • test/js/bun/css/doesnt_crash.test.ts - 1 failing on 🐧 20.04 aarch64
  • test/js/bun/css/doesnt_crash.test.ts - timeout on 🐧 3.20 aarch64
  • test/integration/next-pages/test/next-build.test.ts - 1 failing on 🐧 24.04 aarch64
  • test/integration/next-pages/test/next-build.test.ts - 1 failing on 🐧 24.04 x64-baseline
  • test/integration/next-pages/test/next-build.test.ts - 1 failing on 🍎 14 x64
  • test/integration/next-pages/test/dev-server-ssr-100.test.ts - 1 failing on 🪟 2019 x64-baseline
  • test/integration/next-pages/test/dev-server-ssr-100.test.ts - 1 failing on 🪟 2019 x64
  • test/js/bun/http/serve-body-leak.test.ts - 1 failing on 🪟 2019 x64-baseline
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🍎 14 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🍎 13 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 22.04 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 12 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 24.04 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 20.04 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 22.04 x64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 12 x64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 20.04 x64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 12 x64-baseline
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 24.04 x64-baseline
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 22.04 x64-baseline
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 20.04 x64-baseline
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 3.20 aarch64
  • test/js/node/test/parallel/test-worker-process-exit-async-module.js - code 1 on 🐧 3.20 x64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🍎 14 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🍎 13 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🪟 2019 x64-baseline
  • test/js/node/test/parallel/test-assert.js - code 1 on 🪟 2019 x64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 22.04 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 12 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 24.04 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 20.04 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 22.04 x64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 12 x64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 24.04 x64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 20.04 x64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 12 x64-baseline
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 24.04 x64-baseline
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 22.04 x64-baseline
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 20.04 x64-baseline
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 3.20 aarch64
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 3.20 x64-baseline
  • test/js/node/test/parallel/test-assert.js - code 1 on 🐧 3.20 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🍎 14 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🍎 13 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🪟 2019 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🪟 2019 x64-baseline
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 12 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 24.04 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 22.04 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 20.04 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 22.04 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 12 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 20.04 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 24.04 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 22.04 x64-baseline
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 12 x64-baseline
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 20.04 x64-baseline
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 3.20 aarch64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 24.04 x64-baseline
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 3.20 x64
  • test/js/node/test/parallel/test-assert-builtins-not-read-from-filesystem.js - code 1 on 🐧 3.20 x64-baseline
  • @DonIsaac DonIsaac marked this pull request as draft December 11, 2024 04:03
    Base automatically changed from 12-10-build_trigger_cpp_build_when_generated_errorcode_files_change to 12-10-test_mock_node_test_module_in_node_test_harness December 11, 2024 04:36
    @DonIsaac DonIsaac changed the base branch from 12-10-test_mock_node_test_module_in_node_test_harness to main December 11, 2024 04:56
    @DonIsaac DonIsaac force-pushed the don/test/test-assert branch from 710cbf7 to bdd3d15 Compare December 11, 2024 04:56
    @DonIsaac DonIsaac marked this pull request as ready for review December 12, 2024 06:20
    @Jarred-Sumner Jarred-Sumner marked this pull request as draft December 12, 2024 09:51
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants