Skip to content

Commit c331ece

Browse files
committed
chore(deps): bump acorn-test262 (oxc-project#11192)
Bump `acorn-test262` dependency to include the following tidy-up PRs: * oxc-project/estree-conformance#33 * oxc-project/estree-conformance#34 * oxc-project/estree-conformance#35
1 parent df4cc8d commit c331ece

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

.github/actions/clone-submodules/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ runs:
3838
show-progress: false
3939
repository: oxc-project/acorn-test262
4040
path: tasks/coverage/acorn-test262
41-
ref: f04192393cf7952173444f1e084946443919b315 # Latest main at 20/5/25
41+
ref: baea9081ae0d889218ce761c96b655ad1afec0e6 # Latest main at 20/5/25

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ submodules:
4040
just clone-submodule tasks/coverage/babel https://github.com/babel/babel.git 1d4546bcb80009303aab386b59f4df1fd335c1d5
4141
just clone-submodule tasks/coverage/typescript https://github.com/microsoft/TypeScript.git 81c951894e93bdc37c6916f18adcd80de76679bc
4242
just clone-submodule tasks/prettier_conformance/prettier https://github.com/prettier/prettier.git 7584432401a47a26943dd7a9ca9a8e032ead7285
43-
just clone-submodule tasks/coverage/acorn-test262 https://github.com/oxc-project/acorn-test262 f04192393cf7952173444f1e084946443919b315
43+
just clone-submodule tasks/coverage/acorn-test262 https://github.com/oxc-project/acorn-test262 baea9081ae0d889218ce761c96b655ad1afec0e6
4444
just update-transformer-fixtures
4545

4646
# Install git pre-commit to format files

napi/parser/test/parse-raw.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const ROOT_DIR = pathJoin(import.meta.dirname, '../../..');
88
const TARGET_DIR_PATH = pathJoin(ROOT_DIR, 'target');
99
const TEST262_SHORT_DIR_PATH = 'tasks/coverage/test262/test';
1010
const TEST262_DIR_PATH = pathJoin(ROOT_DIR, TEST262_SHORT_DIR_PATH);
11-
const ACORN_TEST262_DIR_PATH = pathJoin(ROOT_DIR, 'tasks/coverage/acorn-test262/test');
12-
const JSX_SHORT_DIR_PATH = 'tasks/coverage/acorn-test262/test-acorn-jsx/pass';
11+
const ACORN_TEST262_DIR_PATH = pathJoin(ROOT_DIR, 'tasks/coverage/acorn-test262/tests/test262/test');
12+
const JSX_SHORT_DIR_PATH = 'tasks/coverage/acorn-test262/tests/acorn-jsx/pass';
1313
const JSX_DIR_PATH = pathJoin(ROOT_DIR, JSX_SHORT_DIR_PATH);
1414
const TEST262_SNAPSHOT_PATH = pathJoin(ROOT_DIR, 'tasks/coverage/snapshots/estree_test262.snap');
1515
const JSX_SNAPSHOT_PATH = pathJoin(ROOT_DIR, 'tasks/coverage/snapshots/estree_acorn_jsx.snap');
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
commit: f0419239
1+
commit: baea9081
22

33
estree_acorn_jsx Summary:
44
AST Parsed : 39/39 (100.00%)
55
Positive Passed: 35/39 (89.74%)
6-
Negative Passed: 9/9 (100.00%)
7-
Mismatch: tasks/coverage/acorn-test262/test-acorn-jsx/pass/010.jsx
6+
Mismatch: tasks/coverage/acorn-test262/tests/acorn-jsx/pass/010.jsx
87

9-
Mismatch: tasks/coverage/acorn-test262/test-acorn-jsx/pass/013.jsx
8+
Mismatch: tasks/coverage/acorn-test262/tests/acorn-jsx/pass/013.jsx
109

11-
Mismatch: tasks/coverage/acorn-test262/test-acorn-jsx/pass/020.jsx
10+
Mismatch: tasks/coverage/acorn-test262/tests/acorn-jsx/pass/020.jsx
1211

13-
Mismatch: tasks/coverage/acorn-test262/test-acorn-jsx/pass/046.jsx
12+
Mismatch: tasks/coverage/acorn-test262/tests/acorn-jsx/pass/046.jsx
1413

tasks/coverage/src/tools/estree.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ pub struct EstreeTest262Case {
2929

3030
impl Case for EstreeTest262Case {
3131
fn new(path: PathBuf, code: String) -> Self {
32-
let acorn_json_path = Path::new("./tasks/coverage/acorn-test262")
33-
.join(path.strip_prefix("test262").unwrap())
34-
.with_extension("json");
32+
let acorn_json_path =
33+
workspace_root().join("acorn-test262/tests").join(&path).with_extension("json");
3534

3635
Self { base: Test262Case::new(path, code), acorn_json_path }
3736
}
@@ -139,7 +138,7 @@ pub struct AcornJsxSuite<T: Case> {
139138

140139
impl<T: Case> AcornJsxSuite<T> {
141140
pub fn new() -> Self {
142-
Self { path: Path::new("acorn-test262/test-acorn-jsx").to_path_buf(), test_cases: vec![] }
141+
Self { path: workspace_root().join("acorn-test262/tests/acorn-jsx"), test_cases: vec![] }
143142
}
144143
}
145144

@@ -252,8 +251,8 @@ pub struct EstreeTypescriptCase {
252251
impl Case for EstreeTypescriptCase {
253252
fn new(path: PathBuf, code: String) -> Self {
254253
let estree_file_path = workspace_root()
255-
.join("./acorn-test262/test-typescript")
256-
.join(path.strip_prefix("typescript").unwrap())
254+
.join("acorn-test262/tests")
255+
.join(&path)
257256
.with_extension(format!("{}.md", path.extension().unwrap().to_str().unwrap()));
258257
Self { base: TypeScriptCase::new(path, code), estree_file_path }
259258
}

0 commit comments

Comments
 (0)