1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

js: support JS.await (#12726)

This commit is contained in:
playX
2021-12-05 14:33:53 +03:00
committed by GitHub
parent e4850a007c
commit 105d7fcf75
5 changed files with 66 additions and 18 deletions

View File

@ -114,6 +114,9 @@ fn should_test(path string, backend string) ShouldTestStatus {
if path.ends_with('_test.v') {
return .test
}
if path.ends_with('_test.js.v') {
return .test
}
if path.ends_with('.v') && path.count('.') == 2 {
if !path.all_before_last('.v').all_before_last('.').ends_with('_test') {
return .ignore