Source maps test failure

Đang mở Phù hợp với người mới
#313 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, node.js
Lĩnh vực
testing

Hướng nghiên cứu

Bắt đầu với test/parallel/test-node-output-sourcemaps.mjs:29 và fixture source-map/output/source_map_throw_class.js được nêu trong lỗi. So sánh snapshot mong đợi với đầu ra stack thực tế, sau đó chạy lệnh kiểm thử được báo cáo. Hoàn tất khi kiểm thử source-map chạy qua với tên stack của phương thức lớp như dự kiến.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

[09](https://github.com/nodejs/node-v8/actions/runs/27495416036/job/81268444074#step:9:1310)
Path: parallel/test-node-output-sourcemaps
Error: --- stdout ---
Test failure: 'source-map/output/source_map_throw_class_method.js'
Location: test/parallel/test-node-output-sourcemaps.mjs:29:5
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected

  'Error: This is a test\n' +
    '    at Foo.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
    '    at Object.<anonymous> (<project-root>/test/fixtures/source-map/throw-class-method.js:12:7)\n' +
    'Error: This is a test\n' +
+   '    at Object.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
-   '    at Bar.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
    '    at Object.<anonymous> (<project-root>/test/fixtures/source-map/throw-class-method.js:19:7)\n'

    at assertSnapshot (/home/runner/work/node-v8/node-v8/node/test/common/assertSnapshot.js:173:12)
    at async Module.spawnAndAssert (/home/runner/work/node-v8/node-v8/node/test/common/assertSnapshot.js:208:3)
    at async TestContext.<anonymous> (file:///home/runner/work/node-v8/node-v8/node/test/parallel/test-node-output-sourcemaps.mjs:30:7)
    at async Test.run (node:internal/test_runner/test:1389:7)
    at async Suite.processPendingSubtests (node:internal/test_runner/test:960:7) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 'Error: This is a test\n' +
    '    at Foo.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
    '    at Object.<anonymous> (<project-root>/test/fixtures/source-map/throw-class-method.js:12:7)\n' +
    'Error: This is a test\n' +
    '    at Object.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
    '    at Object.<anonymous> (<project-root>/test/fixtures/source-map/throw-class-method.js:19:7)\n',
  expected: 'Error: This is a test\n' +
    '    at Foo.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
    '    at Object.<anonymous> (<project-root>/test/fixtures/source-map/throw-class-method.js:12:7)\n' +
    'Error: This is a test\n' +
    '    at Bar.bar (<project-root>/test/fixtures/source-map/throw-class-method.js:3:11)\n' +
    '    at Object.<anonymous> (<project-root>/test/fixtures/source-map/throw-class-method.js:19:7)\n',
  operator: 'strictEqual',
  diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node-v8/node-v8/node/test/parallel/test-node-output-sourcemaps.mjs

===
=== 1 tests failed
===

Failed tests:
out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node-v8/node-v8/node/test/parallel/test-node-output-sourcemaps.mjs
Ngôn ngữ chính
Shell
Star
466
Fork
75
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nodejs/node-v8

Tất cả issue của nodejs/node-v8

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.