31 lines
849 B
JSON
31 lines
849 B
JSON
{
|
|
"name": "tests-e2e",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"sourceRoot": "packages/tests-e2e",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"test-local": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"export $(cat packages/tests-e2e/.env.e2e | xargs) && npm start",
|
|
"sleep 60 && curl -s -o /dev/null -w \"%{http_code}\" http://localhost:3000/v1/flags | grep -q \"2[0-9][0-9]\" && npx nx run tests-e2e:test-scenarios"
|
|
]
|
|
}
|
|
},
|
|
"test-scenarios": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"npx playwright test packages/tests-e2e/tests/*.spec.ts"
|
|
]
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint",
|
|
"outputs": ["{options.outputFile}"]
|
|
}
|
|
},
|
|
"tags": []
|
|
}
|