mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-26 07:02:48 -05:00
Fix build issues with main. Continue on build issues for renderer. Add missing dependencies, update webpack configs
This commit is contained in:
@@ -7,7 +7,7 @@ import Koa from 'koa'
|
||||
import basicAuth from 'koa-basic-auth'
|
||||
import route from 'koa-route'
|
||||
import serveStatic from 'koa-static'
|
||||
import views from 'koa-views'
|
||||
import views from '@ladjs/koa-views'
|
||||
import websocket from 'koa-easy-ws'
|
||||
import WebSocket from 'ws'
|
||||
import * as Y from 'yjs'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Mock koa middleware that require built statics
|
||||
jest.mock('koa-static', () => () => (ctx, next) => next())
|
||||
jest.mock('koa-views', () => () => (ctx, next) => {
|
||||
jest.mock('@ladjs/koa-views', () => () => (ctx, next) => {
|
||||
ctx.render = async () => {
|
||||
ctx.body = 'mock'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user