Skip to content

Commit

Permalink
app rename cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnatawnclementawn committed Feb 13, 2025
1 parent eafa9ff commit 9c084fe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# App rename
eafa9ff5cff6999ddcab01fe36c8ae4b41e7eafe

This file was deleted.

14 changes: 10 additions & 4 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,30 @@ import fs from 'fs';
import path from 'path';
import vue from "@vitejs/plugin-vue";

import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';

import type { UserConfigExport } from 'vite';


function generateConfig(): Promise<UserConfigExport> {
return new Promise((resolve, reject) => {
const filePath = path.dirname(fileURLToPath(import.meta.url));

const exclude = [
'**/*.d.ts',
'**/node_modules/**',
'**/dist/**',
'**/install/**',
'**/cypress/**',
'**/themes/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
];

const rawData = fs.readFileSync(path.join(__dirname, '.frontend-configuration-settings.json'), 'utf-8');
const rawData = fs.readFileSync(
path.join(filePath, '.frontend-configuration-settings.json'),
'utf-8'
);
const parsedData = JSON.parse(rawData);

const alias: { [key: string]: string } = {
Expand All @@ -41,13 +47,13 @@ function generateConfig(): Promise<UserConfigExport> {
test: {
alias: alias,
coverage: {
include: [path.join('arches_controlled_lists', 'src', path.sep)],
include: [path.join(parsedData['APP_RELATIVE_PATH'], 'src', path.sep)],
exclude: exclude,
reporter: [
['clover', { 'file': 'coverage.xml' }],
'text',
],
reportsDirectory: path.join(__dirname, 'coverage', 'frontend'),
reportsDirectory: path.join(filePath, 'coverage', 'frontend'),
},
environment: "jsdom",
globals: true,
Expand Down
3 changes: 1 addition & 2 deletions vitest.setup.mts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { beforeAll, vi } from 'vitest';
import '@/arches_controlled_lists/declarations.d.ts';


beforeAll(() => {
vi.mock('arches', () => ({
default: '',
}));

vi.mock('vue3-gettext', () => ({
useGettext: () => ({
$gettext: (text: string) => (text)
Expand Down

0 comments on commit 9c084fe

Please sign in to comment.