dudykr / stc

Speedy TypeScript type checker
https://stc.dudy.dev
Apache License 2.0
5.77k stars 166 forks source link

test: Support more directives in file analyzer testing system #1069

Closed sunrabbit123 closed 1 year ago

sunrabbit123 commented 1 year ago

Description:

When comparing TSC to error, we took the error results from ACTUAL.

In actual, the rules for each file were not applied properly, As a result, tests like strictNullCheck didn't work correctly.

To fix this, we unified the env import code within the tests.

BREAKING CHANGE:

Related issue (if exists):

github-actions[bot] commented 1 year ago

Thank you for the PR! Commit: 1579d916e5453ec651168b5c16ddb517f57d79dd

Files to check

These are files which is affected by the current PR, but not reflected. If there's no file below this message, please ignore this message.

You can run ./scripts/auto-unignore.sh from crates/stc_ts_file_analyzer for typescript files, and ./scripts/check.sh from crates/stc_ts_type_checker for *.stats.rust-debug files.