Fixed subpath and tests for chartjs

This commit is contained in:
Alejandro Celaya 2022-12-25 22:44:43 +01:00
parent 79515ac960
commit c83563c0ea
3 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,6 @@
import '@testing-library/jest-dom';
import 'jest-canvas-mock';
import 'chart.js/auto';
import ResizeObserver from 'resize-observer-polyfill';
import { setAutoFreeze } from 'immer';

View file

@ -30,8 +30,8 @@ import { ToggleSwitch } from '../../utils/ToggleSwitch';
import { prettify } from '../../utils/helpers/numbers';
import { pointerOnHover, renderChartLabel } from '../../utils/helpers/charts';
import { HIGHLIGHTED_COLOR, MAIN_COLOR } from '../../utils/theme';
import './LineChartCard.scss';
import { STANDARD_DATE_FORMAT } from '../../utils/helpers/date';
import './LineChartCard.scss';
interface LineChartCardProps {
title: string;

View file

@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa';
import { manifest } from './manifest';
import pack from './package.json';
// https://vitejs.dev/config/
export default defineConfig({
@ -19,4 +20,5 @@ export default defineConfig({
server: {
port: 3000,
},
base: pack.homepage ?? '/',
});