Skip to content

Weird behaviour in a test #30014

@s-rigaud

Description

@s-rigaud

Description

Running npm run lint-test will result with this line

three.js/test/unit/src/math/Matrix3.tests.js
  454:18  warning  'Vector2' is not defined  no-undef

but running npm run test-unit results in no test failing.

When adding the missing import with import { Vector2 } from '../../../../src/math/Vector2.js', and re-running npm run test-unit the test using Vector2 is failing while both assertions are True:

not ok 1925 Maths > Matrix3 > makeTranslation
1..2758
# pass 1283
# skip 0
# todo 1474
# fail 1

I'm not familiar to QUnit and could not pinpoint the bug :/

Reproduction steps

Code

run npm run lint-test

Live example

--

Screenshots

No response

Version

r172dev

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions