mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
R: Improve test runner system and vite config
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
6d5466dd75
commit
54472ef0b1
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
|
@ -28,6 +28,14 @@
|
||||||
"script": "${workspaceFolder}/scripts/dev/RunTests.ps1",
|
"script": "${workspaceFolder}/scripts/dev/RunTests.ps1",
|
||||||
"args": []
|
"args": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
// Run end-to-end tests
|
||||||
|
"name": "Test E2E",
|
||||||
|
"type": "PowerShell",
|
||||||
|
"request": "launch",
|
||||||
|
"script": "${workspaceFolder}/scripts/dev/RunE2ETests.ps1",
|
||||||
|
"args": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
// Run Tests for backend for current file in Debug mode
|
// Run Tests for backend for current file in Debug mode
|
||||||
"name": "BE-DebugTestFile",
|
"name": "BE-DebugTestFile",
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"generate": "lezer-generator src/components/RSInput/rslang/rslangFast.grammar -o src/components/RSInput/rslang/parser.ts && lezer-generator src/components/RSInput/rslang/rslangAST.grammar -o src/components/RSInput/rslang/parserAST.ts && lezer-generator src/components/RefsInput/parse/refsText.grammar -o src/components/RefsInput/parse/parser.ts",
|
"generate": "lezer-generator src/components/RSInput/rslang/rslangFast.grammar -o src/components/RSInput/rslang/parser.ts && lezer-generator src/components/RSInput/rslang/rslangAST.grammar -o src/components/RSInput/rslang/parserAST.ts && lezer-generator src/components/RefsInput/parse/refsText.grammar -o src/components/RefsInput/parse/parser.ts",
|
||||||
"test": "jest && playwright test",
|
"test": "jest",
|
||||||
|
"teste2e": "playwright test",
|
||||||
"dev": "vite --host",
|
"dev": "vite --host",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
||||||
|
|
|
@ -73,6 +73,9 @@ export default ({ mode }: { mode: string }) => {
|
||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, './src')
|
'@': path.resolve(__dirname, './src')
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
optimizeDeps: {
|
||||||
|
exclude: ['react-scan']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
14
scripts/dev/RunE2ETests.ps1
Normal file
14
scripts/dev/RunE2ETests.ps1
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Run tests
|
||||||
|
|
||||||
|
$frontend = Resolve-Path -Path "$PSScriptRoot\..\..\rsconcept\frontend"
|
||||||
|
|
||||||
|
function RunTests() {
|
||||||
|
TestFrontend
|
||||||
|
}
|
||||||
|
|
||||||
|
function TestFrontend() {
|
||||||
|
Set-Location $frontend
|
||||||
|
& npm run teste2e
|
||||||
|
}
|
||||||
|
|
||||||
|
RunTests
|
Loading…
Reference in New Issue
Block a user