Updated packages and fixed identified CS and typo in sonar-project.properties
Some checks failed
Sonar / SonarQube (push) Has been cancelled
Some checks failed
Sonar / SonarQube (push) Has been cancelled
This commit is contained in:
parent
defa605e45
commit
b5b082bc5d
6 changed files with 819 additions and 501 deletions
1281
package-lock.json
generated
1281
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -16,7 +16,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/tailwindcss": "^7.0.0-beta.1",
|
"@nuxtjs/tailwindcss": "^7.0.0-beta.1",
|
||||||
"@primeuix/themes": "^1.2.5",
|
"@primeuix/themes": "^2.0.1",
|
||||||
"nuxt": "^4.1.3",
|
"nuxt": "^4.1.3",
|
||||||
"primeicons": "^7.0.0",
|
"primeicons": "^7.0.0",
|
||||||
"primevue": "^4.4.1",
|
"primevue": "^4.4.1",
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ sonar.projectName=Glowing Fiesta
|
||||||
sonar.projectVersion=1.0.0
|
sonar.projectVersion=1.0.0
|
||||||
sonar.sourceEncoding=UTF-8
|
sonar.sourceEncoding=UTF-8
|
||||||
sonar.sources=app, tests
|
sonar.sources=app, tests
|
||||||
sonar.inclusions=app/**/*.ts, app/**/*.js, app/**/*.vue, app/**/*.css, app/**/*.scss, tests/**/*.spec.ts
|
sonar.inclusions=app/**/*.ts, app/**/*.js, app/**/*.vue, app/**/*.css, app/**/*.scss, tests/**/*.test.ts
|
||||||
sonar.exclusions=**/node_modules/**, **/coverage/**, *.config.ts
|
sonar.exclusions=**/node_modules/**, **/coverage/**, *.config.ts
|
||||||
sonar.coverage.exclusions=tests/**, *.config.ts
|
sonar.coverage.exclusions=tests/**, *.config.ts
|
||||||
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,14 @@ describe("Footer.vue", () => {
|
||||||
|
|
||||||
const mockDate = (year: number) => {
|
const mockDate = (year: number) => {
|
||||||
globalThis.Date = class extends RealDate {
|
globalThis.Date = class extends RealDate {
|
||||||
constructor() {
|
constructor(...args: any[]) {
|
||||||
super();
|
super(args.length === 0 ? `${year}-01-01` : args[0]);
|
||||||
return new RealDate(`${year}-01-01`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static now() {
|
static now() {
|
||||||
return new RealDate(`${year}-01-01`).getTime();
|
return new RealDate(`${year}-01-01`).getTime();
|
||||||
}
|
}
|
||||||
};
|
} as any as DateConstructor;
|
||||||
};
|
};
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,10 @@
|
||||||
// https://nuxt.com/docs/guide/concepts/typescript
|
// https://nuxt.com/docs/guide/concepts/typescript
|
||||||
"files": [],
|
"files": [],
|
||||||
"references": [
|
"references": [
|
||||||
{
|
{ "path": "./.nuxt/tsconfig.app.json" },
|
||||||
"path": "./.nuxt/tsconfig.app.json"
|
{ "path": "./.nuxt/tsconfig.server.json" },
|
||||||
},
|
{ "path": "./.nuxt/tsconfig.shared.json" },
|
||||||
{
|
{ "path": "./.nuxt/tsconfig.node.json" },
|
||||||
"path": "./.nuxt/tsconfig.server.json"
|
{ "path": "./tsconfig.test.json" }
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "./.nuxt/tsconfig.shared.json"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "./.nuxt/tsconfig.node.json"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
11
tsconfig.test.json
Normal file
11
tsconfig.test.json
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"paths": {
|
||||||
|
"~": ["./app"],
|
||||||
|
"~/*": ["./app/*"],
|
||||||
|
"@": ["./app"],
|
||||||
|
"@/*": ["./app/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": ["./tests/**/*"]
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue