Vklass: Run tests with nx

This commit is contained in:
Erik Eng 2021-12-15 21:10:31 +01:00
parent 1598a7e9c8
commit 5debb9a555
4 changed files with 38 additions and 8 deletions

View File

@ -29,6 +29,7 @@ The respective README files there contain more detailed descriptions.
* [api](#api)
* [api-skolplattformen](#api-skolplattformen)
* [api-hjarntorget](#api-hjarntorget)
* [api-vklass](#api-vklass)
* [curriculum](#curriculum)
* [hooks](#hooks)
* [Getting started with development](#getting-started-with-development)
@ -74,7 +75,11 @@ The base for all api implementations
#### api-hjarntorget
The implementation for the school platform in Gothenburg called Hjärntorget
The implementation for the school platform in Gothenburg called Hjärntorget.
#### api-vklass
The implementation for the school platform Vklass.
#### api-skolplattformen
@ -84,6 +89,7 @@ It also makes it easier for others to develop their own applications for the Sko
**Pro tip:** If you don't want the API to make requests to the back-end, you can turn on _fake mode_ to return static data instead. \
Do so by logging in using 12121212121212 or 1212121212 as your personal identity number.
Check out the documentation [here](libs/api-skolplattformen).
#### curriculum
Translations of curriculum codes (sv: ämneskoder på schemat) to clear text descriptions

View File

@ -0,0 +1,23 @@
{
"root": "libs/api-vklass",
"sourceRoot": "libs/api-vklass/src",
"projectType": "library",
"targets": {
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/api-vklass/**/*.{ts,tsx,js,jsx}"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/libs/api-skolplattformen"],
"options": {
"jestConfig": "libs/api-vklass/jest.config.js",
"passWithNoTests": true
}
}
},
"tags": []
}

View File

@ -1,12 +1,13 @@
{
"version": 2,
"projects": {
"api": "libs/api",
"api-hjarntorget": "libs/api-hjarntorget",
"api-skolplattformen": "libs/api-skolplattformen",
"api-test-app": "apps/api-test-app",
"api-vklass": "libs/api-vklass",
"api": "libs/api",
"curriculum": "libs/curriculum",
"hooks": "libs/hooks",
"api-test-app": "apps/api-test-app",
"skolplattformen-app": "apps/skolplattformen-app"
}
}