Add tests for the Dropdown structure and behavior
Largely this is written by an LLM after I provided the targets, and I've looked through the tests themselves to confirm they are accurate. There may be improvements in how to actually *set up* the tests, though, as I am less familiar with those. This has two test suites: the first for html structure, the second for behavior. Each of them calls another script that provides helper functions for setting things up and taking them down. This keeps the test suites themselves fairly lean.
This commit is contained in:
1 parent
f716c390b9
commit
fa07af2d82
5 files changed
+318
-1
No files matched your search
+5
-1
@@ -29,6 +29,7 @@
|
||||
"test:coverage": "jest --coverage --silent --runInBand",
|
||||
"test:dev": "jest --verbose --watch",
|
||||
"test:basic": "jest tests/markdown/basic.test.js --verbose",
|
||||
"test:components": "jest \"client/components/.*\\.test\\.(js|jsx)$\" --verbose",
|
||||
"test:variables": "jest tests/markdown/variables.test.js --verbose",
|
||||
"test:mustache-syntax": "jest \".*(mustache-syntax).*\" --verbose --noStackTrace",
|
||||
"test:mustache-syntax:inline": "jest \".*(mustache-syntax).*\" -t '^Inline:.*' --verbose --noStackTrace",
|
||||
@@ -61,9 +62,12 @@
|
||||
"node_modules/(?!(nanoid|@exodus/bytes|parse5|@asamuzakjp|@csstools|entities)/)"
|
||||
],
|
||||
"transform": {
|
||||
"^.+\\.[jt]s$": "babel-jest",
|
||||
"^.+\\.[jt]sx?$": "babel-jest",
|
||||
"^.+\\.mjs$": "babel-jest"
|
||||
},
|
||||
"moduleNameMapper": {
|
||||
"\\.(less|css)$": "<rootDir>/tests/__mocks__/styleMock.js"
|
||||
},
|
||||
"coveragePathIgnorePatterns": [
|
||||
"build/*"
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user