Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions __tests__/Speednote.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { MemoryRouter, Route, createMemoryHistory } from '@solidjs/router';
import { render, screen } from '@solidjs/testing-library';
import userEvent from '@testing-library/user-event';

import App from '../src/App';
import NotFound from '../src/NotFound';
import { STORAGE_KEY } from '../src/database';
import { DEFAULT_DATA } from '../src/database';
import App from '~/app';
import { DEFAULT_DATA, STORAGE_KEY } from '~/database';
import NotFound from '~/not-found';

// Mocking is essential in this case as two properties are not supported yet in JSDOM:
//
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "speednote",
"version": "3.1.5",
"version": "3.1.6",
"private": true,
"type": "module",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/App.tsx → src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Configuration from './Configuration';
import Editor from './Editor';
import Link from './Link';
import Configuration from './configuration';
import Editor from './editor';
import Link from './link';

const App = () => (
<>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Configuration.tsx → src/configuration.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createSignal, onMount } from 'solid-js';

import Button from './Button';
import Button from './button';

const Configuration = () => {
const root = document.documentElement;
Expand Down
6 changes: 3 additions & 3 deletions src/Editor.tsx → src/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import {
splitProps,
} from 'solid-js';

import Button from './Button';
import Input from './Input';
import Link from './Link';
import Button from './button';
import { type DatabaseService, createLocalDatabase } from './database';
import Input from './input';
import Link from './link';
import { type Data, sharedContentSchema, sharedTitleSchema } from './schema';
import { type StoreService, createApplicationStore } from './store';

Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Route, Router } from '@solidjs/router';
import { lazy } from 'solid-js';
import { render } from 'solid-js/web';

import App from './App';
import App from './app';

const NotFound = lazy(() => import('./NotFound'));
const NotFound = lazy(() => import('./not-found'));

const root = document.getElementById('root');
if (!root) {
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/NotFound.tsx → src/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Link from './Link';
import Link from './link';

const NotFound = () => (
<>
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
"noFallthroughCasesInSwitch": true,

/* Custom */
"types": ["vite/client", "vitest/globals", "@testing-library/jest-dom"]
"types": ["vite/client", "vitest/globals", "@testing-library/jest-dom"],
"baseUrl": "./",
"paths": {
"~/*": ["./src/*"]
}
},
"include": ["src", "__tests__", "e2e"]
}
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import path from 'node:path';
import tailwindcss from '@tailwindcss/vite';
import devtools from 'solid-devtools/vite';
import { defineConfig } from 'vite';
Expand Down Expand Up @@ -63,6 +64,11 @@ export default defineConfig({
server: {
port: 3000,
},
resolve: {
alias: {
'~': path.resolve(import.meta.dirname, './src/*'),
},
},
test: {
globals: true,
environment: 'jsdom',
Expand Down