mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: server and app build
This commit is contained in:
1 parent
253564376d
commit
3985d5d089
5 files changed
+6
-6
No files matched your search
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"dev:docker": "API_TARGET=http://backend:3000 vite",
|
"dev:docker": "API_TARGET=http://backend:3000 vite",
|
||||||
"build": "vue-tsc -b && vite build",
|
"build": "vue-tsc && vite build",
|
||||||
"type-check": "vue-tsc -b",
|
"type-check": "vue-tsc",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { test, expect } from '@jest/globals'
|
import { test, expect } from '@jest/globals'
|
||||||
import { isValidEmail, isValidUsername } from '../src/auth.js'
|
import { isValidEmail, isValidUsername } from '../auth'
|
||||||
|
|
||||||
test('check valid username', () => {
|
test('check valid username', () => {
|
||||||
const valid = ['alex', 'alex123', 'john_doe', 'john-doe', 'rudeus']
|
const valid = ['alex', 'alex123', 'john_doe', 'john-doe', 'rudeus']
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, it, expect } from '@jest/globals'
|
import { describe, it, expect } from '@jest/globals'
|
||||||
import { buildFileCheckCmd, File } from '../src/commands.js'
|
import { buildFileCheckCmd, File } from '../commands'
|
||||||
|
|
||||||
describe('buildFileCheckCmd function', () => {
|
describe('buildFileCheckCmd function', () => {
|
||||||
it('builds the file check command correctly', () => {
|
it('builds the file check command correctly', () => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { describe, it, expect } from '@jest/globals'
|
import { describe, it, expect } from '@jest/globals'
|
||||||
import DAG from '../src/dag.js'
|
import DAG from '../dag'
|
||||||
|
|
||||||
describe('dag layers', () => {
|
describe('dag layers', () => {
|
||||||
it('two layer', () => {
|
it('two layer', () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import connectDB from '../../../packages/models'
|
import { connectDB } from '../../../packages/models'
|
||||||
import { removeExpired } from '../containers/expiryChecker'
|
import { removeExpired } from '../containers/expiryChecker'
|
||||||
import config from '../config'
|
import config from '../config'
|
||||||
import logger from '../utils/logger'
|
import logger from '../utils/logger'
|
||||||
|
|||||||
Reference in new issue
Block a user