Files
testdrive-jsui/package.json
tegwick 891d785533 Complete Phase 1 & 3: TestDrive-JSUI capability migration
Phase 1 - File Migration:
- Copy missing files to capability (document-controls.js, test-document-navigator.js)
- Create legacy compatibility wrapper (document-controls-legacy.js)
- Install jest-environment-jsdom dependency
- All 84 automated tests passing (68 JS + 15 Python + 1 fixes)

Phase 3 - Template Updates:
- Update MIGRATION_STATUS.md with Phase 3 completion status
- Update CLAUDE.md with migration completion details
- Document verification results for both view and edit modes

Migration Status:
- All 24 original JavaScript files now in capability 
- File verification: 20 identical, 4 intentionally different 
- Test coverage: 59.11% (exceeds 58% requirement) 
- Ready for Phase 4 cleanup after verification period

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-16 10:19:56 +01:00

109 lines
2.3 KiB
JSON

{
"name": "testdrive-jsui",
"version": "0.1.0",
"description": "JavaScript UI testing framework capability for MarkiTect",
"main": "js/index.js",
"directories": {
"test": "js/tests"
},
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:verbose": "jest --verbose",
"test:specific": "jest --testNamePattern",
"lint": "eslint js/**/*.js",
"lint:fix": "eslint js/**/*.js --fix",
"dev": "npm run test:watch",
"build": "echo 'No build step required for this package'",
"clean": "rm -rf coverage/ .nyc_output/ node_modules/.cache/"
},
"repository": {
"type": "git",
"url": "https://github.com/markitect/testdrive-jsui.git"
},
"keywords": [
"javascript",
"testing",
"ui",
"framework",
"markitect",
"tdd",
"dom",
"components"
],
"author": "MarkiTect Project",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.23.0",
"@babel/preset-env": "^7.23.0",
"babel-jest": "^29.7.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-jest": "^27.6.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0"
},
"dependencies": {
"jsdom": "^23.0.0"
},
"jest": {
"testEnvironment": "jsdom",
"testMatch": [
"**/js/tests/**/*.test.js"
],
"testPathIgnorePatterns": [
"/node_modules/",
"js/tests/refactor-test-runner.js",
"js/tests/setup.js"
],
"collectCoverageFrom": [
"js/core/**/*.js",
"js/components/**/*.js",
"js/utils/**/*.js",
"!js/tests/**/*.js",
"!**/node_modules/**"
],
"coverageDirectory": "coverage",
"coverageReporters": [
"text",
"lcov",
"html"
],
"setupFilesAfterEnv": [
"<rootDir>/js/tests/jest.setup.js"
],
"verbose": true
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
},
"eslintConfig": {
"extends": [
"standard",
"plugin:jest/recommended"
],
"env": {
"browser": true,
"jest": true,
"node": true
},
"plugins": [
"jest"
],
"rules": {
"no-console": "warn",
"no-debugger": "error"
}
}
}