chore(web): add testing step to github actions

This commit is contained in:
Pujit Mehrotra
2024-11-19 13:11:52 -05:00
parent 2724485989
commit acccb3694c
3 changed files with 9 additions and 1 deletions

View File

@@ -136,6 +136,9 @@ jobs:
continue-on-error: true
run: npm run lint
- name: Test
run: npm run test:ci
- name: Build
run: npm run build

View File

@@ -12,7 +12,11 @@ const defaultMarkedExtension: MarkedExtension = {
/**
* Helper class to build or conveniently use a markdown parser.
*
* - Use `Markdown.create` to extend or customize parsing functionality.
* - Use `Markdown.parse` to conveniently parse markdown to safe html.
*/
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export class Markdown {
private static instance = Markdown.create();

View File

@@ -23,7 +23,8 @@
"serve": "serve dist/nuxt-custom-elements/unraid-components",
"codegen": "graphql-codegen --config codegen.ts -r dotenv/config",
"codegen:watch": "graphql-codegen --config codegen.ts --watch -r dotenv/config",
"test": "vitest"
"test": "vitest",
"test:ci": "vitest run"
},
"devDependencies": {
"@graphql-codegen/cli": "^5.0.2",