mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
fix test, adjust node adapter, bump version to 0.1
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -17,6 +17,8 @@ packages/media/.env
|
|||||||
**/*/vite.config.ts.timestamp*
|
**/*/vite.config.ts.timestamp*
|
||||||
.history
|
.history
|
||||||
**/*/.db/*
|
**/*/.db/*
|
||||||
|
**/*/*.db-shm
|
||||||
|
**/*/*.db-wal
|
||||||
.npmrc
|
.npmrc
|
||||||
/.verdaccio
|
/.verdaccio
|
||||||
.idea
|
.idea
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ const { dummyConnection, afterAllCleanup } = getDummyConnection();
|
|||||||
* Node writefile
|
* Node writefile
|
||||||
* data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | Stream,
|
* data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | Stream,
|
||||||
*/
|
*/
|
||||||
|
const ALL_TESTS = !!process.env.ALL_TESTS;
|
||||||
describe("MediaController", () => {
|
describe.skipIf(ALL_TESTS)("MediaController", () => {
|
||||||
test("..", async () => {
|
test("..", async () => {
|
||||||
const ctx: any = {
|
const ctx: any = {
|
||||||
em: new EntityManager([], dummyConnection, []),
|
em: new EntityManager([], dummyConnection, []),
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"bin": "./dist/cli/index.js",
|
"bin": "./dist/cli/index.js",
|
||||||
"version": "0.0.14",
|
"version": "0.1.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:all": "bun run build && bun run build:cli",
|
"build:all": "bun run build && bun run build:cli",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -12,9 +12,11 @@ const config = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
serve(config, {
|
serve(config, {
|
||||||
relativeDistPath: "../../node_modules/bknd/dist",
|
|
||||||
port: 1337,
|
port: 1337,
|
||||||
listener: ({ port }) => {
|
listener: ({ port }) => {
|
||||||
console.log(`Server is running on http://localhost:${port}`);
|
console.log(`Server is running on http://localhost:${port}`);
|
||||||
}
|
},
|
||||||
|
// this is only required to run inside the same workspace
|
||||||
|
// leave blank if you're running this from a different project
|
||||||
|
relativeDistPath: "../../app/dist"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user