Skip to content

Commit 37e5e33

Browse files
test: keep JavascriptParser's tests with webpack's classes
javascript/ holds the syntax: tokenizer, parser, scope and printer. JavascriptParser is webpack's layer over it, the one plugins tap, so its tests go back to the top level next to NormalModule's and the others. The layout docs give tooling/ its own sentence. Claude-Session: https://claude.ai/code/session_017TkBWTk3wcyUcJYDp5ZhaP
1 parent 552729b commit 37e5e33

3 files changed

Lines changed: 50 additions & 50 deletions

File tree

‎TESTING_DOCS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Directories come first, in alphabetical order, then the individual files worth t
142142

143143
- **Purpose**: Contains `*.unittest.js` unit tests for various functionalities.
144144
- **Usage**: Ensures individual modules and functions work as expected.
145-
- **Layout**: the syntax tests sit in one folder per language — `javascript/` (`tokenizer`, `parser`, `module-parser`, `scope`, `printer`), `css/` and `html/` (`tokenizer`, `parser`, `printer`), `xml/` (`printer`) and `json/` (`printer`, `web-manifest`). A printer's file holds both of its modes and the language's minifier, which drives the printer in its `minify` mode — and the tests of the `tooling/` scripts in `tooling/`. The rest stay at the top level.
145+
- **Layout**: the syntax tests sit in one folder per language — `javascript/` (`tokenizer`, `parser`, `scope`, `printer`), `css/` and `html/` (`tokenizer`, `parser`, `printer`), `xml/` (`printer`) and `json/` (`printer`, `web-manifest`). A printer's file holds both of its modes and the language's minifier, which drives the printer in its `minify` mode. The tests of the `tooling/` scripts sit in `tooling/`. The rest, webpack's own classes such as `JavascriptParser`, stay at the top level.
146146

147147
### `watchCases/`
148148

‎cspell.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@
642642
"types.d.ts",
643643
"**/**/*.snap",
644644
"test/cases/json/weird-properties/globals.json",
645-
"test/unitCases/javascript/module-parser.unittest.js",
645+
"test/unitCases/JavascriptParser.unittest.js",
646646
"lib/javascript/data.js",
647647
"lib/javascript/syntax-printer-data.js",
648648
"tooling/html-entities.json",

0 commit comments

Comments
 (0)