I've rewritten #207 to fix the issue. Ignore the below.
Thanks for your work on this library!
I'm aware that it's intentional that only tests in the __test__ folders get executed. The tests in the test folder are meant to be type tests, so in theory they just need to be compiled and not actually run, and they are getting compiled.
However, I found that if I change this line
|
expectTrue(value(Measure.dimension(unitSystem, "length")).hasType<TestMeasure<{ length: 1; mass: 0; time: 0 }>>()); |
to
expectTrue(value(Measure.dimension(unitSystem, "length")).hasType<TestMeasure<{ xyzNonsense: 99 }>>());
measureTypeTests.ts still compiles just fine.
I've rewritten #207 to fix the issue. Ignore the below.
Thanks for your work on this library!I'm aware that it's intentional that only tests in the__test__folders get executed. The tests in thetestfolder are meant to be type tests, so in theory they just need to be compiled and not actually run, and they are getting compiled.However, I found that if I change this linesafe-units/test/measureTypeTests.ts
Line 20 in 664e2d5
tomeasureTypeTests.tsstill compiles just fine.