use tsx with mocha
ci / build (push) Failing after 1m54s
Details
ci / build (push) Failing after 1m54s
Details
This commit is contained in:
parent
1be35b5b4e
commit
01c414b6e4
|
@ -4,7 +4,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "@CJ_Clippy",
|
"author": "@CJ_Clippy",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "@CJ_Clippy",
|
"author": "@CJ_Clippy",
|
||||||
|
|
|
@ -15,6 +15,40 @@ importers:
|
||||||
specifier: ^7.0.1
|
specifier: ^7.0.1
|
||||||
version: 7.5.0
|
version: 7.5.0
|
||||||
|
|
||||||
|
../..: {}
|
||||||
|
|
||||||
|
../boop: {}
|
||||||
|
|
||||||
|
../bot: {}
|
||||||
|
|
||||||
|
../capture: {}
|
||||||
|
|
||||||
|
../image: {}
|
||||||
|
|
||||||
|
../infra: {}
|
||||||
|
|
||||||
|
../next: {}
|
||||||
|
|
||||||
|
../scout: {}
|
||||||
|
|
||||||
|
../storage: {}
|
||||||
|
|
||||||
|
../strapi: {}
|
||||||
|
|
||||||
|
../taco: {}
|
||||||
|
|
||||||
|
../temporal-worker: {}
|
||||||
|
|
||||||
|
../temporal-workflows: {}
|
||||||
|
|
||||||
|
../types: {}
|
||||||
|
|
||||||
|
../uppy: {}
|
||||||
|
|
||||||
|
../utils: {}
|
||||||
|
|
||||||
|
../video: {}
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@aws-crypto/crc32@5.2.0':
|
'@aws-crypto/crc32@5.2.0':
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Warn: no test specified\" && exit 0",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
"build": "tsc --build"
|
"build": "tsc --build"
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Warn: no test specified\" && exit 0",
|
||||||
"start": "node ./dist/index.js",
|
"start": "node ./dist/index.js",
|
||||||
"dev": "nodemon --ext js,ts,json,yaml --exec \"node --loader ts-node/esm --disable-warning=ExperimentalWarning ./src/index.ts\"",
|
"dev": "nodemon --ext js,ts,json,yaml --exec \"node --loader ts-node/esm --disable-warning=ExperimentalWarning ./src/index.ts\"",
|
||||||
"build": "tsc --build"
|
"build": "tsc --build"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"$schema": "https://json.schemastore.org/mocharc.json",
|
||||||
"extension": ["ts"],
|
"extension": ["ts"],
|
||||||
|
"require": "tsx",
|
||||||
"spec": "src/**/*.spec.ts"
|
"spec": "src/**/*.spec.ts"
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"./*.js": "./src/*.js"
|
"./*.js": "./src/*.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha",
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
||||||
"build:worker": "tsc --build ./tsconfig.json",
|
"build:worker": "tsc --build ./tsconfig.json",
|
||||||
"start": "echo please use either start:manager or start:worker",
|
"start": "echo please use either start:manager or start:worker",
|
||||||
"start:manager": "node --loader ts-node/esm ./src/index.ts",
|
"start:manager": "node --loader ts-node/esm ./src/index.ts",
|
||||||
|
@ -44,7 +44,6 @@
|
||||||
"qs": "^6.12.1",
|
"qs": "^6.12.1",
|
||||||
"sharp": "^0.33.4",
|
"sharp": "^0.33.4",
|
||||||
"slugify": "^1.6.6",
|
"slugify": "^1.6.6",
|
||||||
"ts-node": "^10.9.2",
|
|
||||||
"tsx": "^4.7.2",
|
"tsx": "^4.7.2",
|
||||||
"types": "workspace:^",
|
"types": "workspace:^",
|
||||||
"xpath": "^0.0.34"
|
"xpath": "^0.0.34"
|
||||||
|
@ -53,6 +52,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^5.1.0",
|
"chai": "^5.1.0",
|
||||||
"mocha": "^10.4.0",
|
"mocha": "^10.4.0",
|
||||||
|
"ts-node": "^10.9.2",
|
||||||
"typescript": "^5.4.5"
|
"typescript": "^5.4.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,9 +86,6 @@ importers:
|
||||||
slugify:
|
slugify:
|
||||||
specifier: ^1.6.6
|
specifier: ^1.6.6
|
||||||
version: 1.6.6
|
version: 1.6.6
|
||||||
ts-node:
|
|
||||||
specifier: ^10.9.2
|
|
||||||
version: 10.9.2(@swc/core@1.6.13)(@types/node@20.14.10)(typescript@5.5.3)
|
|
||||||
tsx:
|
tsx:
|
||||||
specifier: ^4.7.2
|
specifier: ^4.7.2
|
||||||
version: 4.16.2
|
version: 4.16.2
|
||||||
|
@ -105,10 +102,47 @@ importers:
|
||||||
mocha:
|
mocha:
|
||||||
specifier: ^10.4.0
|
specifier: ^10.4.0
|
||||||
version: 10.6.0
|
version: 10.6.0
|
||||||
|
ts-node:
|
||||||
|
specifier: ^10.9.2
|
||||||
|
version: 10.9.2(@swc/core@1.6.13)(@types/node@20.14.10)(typescript@5.5.3)
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.4.5
|
specifier: ^5.4.5
|
||||||
version: 5.5.3
|
version: 5.5.3
|
||||||
|
|
||||||
|
../..: {}
|
||||||
|
|
||||||
|
../archive: {}
|
||||||
|
|
||||||
|
../boop: {}
|
||||||
|
|
||||||
|
../bot: {}
|
||||||
|
|
||||||
|
../capture: {}
|
||||||
|
|
||||||
|
../image: {}
|
||||||
|
|
||||||
|
../infra: {}
|
||||||
|
|
||||||
|
../next: {}
|
||||||
|
|
||||||
|
../storage: {}
|
||||||
|
|
||||||
|
../strapi: {}
|
||||||
|
|
||||||
|
../taco: {}
|
||||||
|
|
||||||
|
../temporal-worker: {}
|
||||||
|
|
||||||
|
../temporal-workflows: {}
|
||||||
|
|
||||||
|
../types: {}
|
||||||
|
|
||||||
|
../uppy: {}
|
||||||
|
|
||||||
|
../utils: {}
|
||||||
|
|
||||||
|
../video: {}
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
'@aws-crypto/crc32@5.2.0':
|
'@aws-crypto/crc32@5.2.0':
|
||||||
|
|
|
@ -5,7 +5,7 @@ import * as cheerio from 'cheerio'
|
||||||
* @param {String} roomUrl example: https://chaturbate.com/projektmelody
|
* @param {String} roomUrl example: https://chaturbate.com/projektmelody
|
||||||
* @returns {Object} initialRoomDossier
|
* @returns {Object} initialRoomDossier
|
||||||
*/
|
*/
|
||||||
export async function getInitialRoomDossier(roomUrl) {
|
export async function getInitialRoomDossier(roomUrl: string) {
|
||||||
try {
|
try {
|
||||||
const res = await fetch(roomUrl, {
|
const res = await fetch(roomUrl, {
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -23,8 +23,12 @@ export async function getInitialRoomDossier(roomUrl) {
|
||||||
|
|
||||||
return dossier;
|
return dossier;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Handle the error gracefully
|
if (error instanceof Error) {
|
||||||
console.log(`Error fetching initial room dossier: ${error.message}`);
|
// Handle the error gracefully
|
||||||
return null; // Or any other appropriate action you want to take
|
console.error(`Error fetching initial room dossier: ${error.message}`);
|
||||||
|
return null; // Or any other appropriate action you want to take
|
||||||
|
} else {
|
||||||
|
console.error('caught an exotic error, uh-oh')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
"./*.js": "./src/*.js"
|
"./*.js": "./src/*.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "@CJ_Clippy",
|
"author": "@CJ_Clippy",
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.d.ts",
|
"main": "index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Warn: no test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
@ -29,14 +29,14 @@ kubectl -n futureporn exec postgres -- psql -U postgres --command "\
|
||||||
CONNECTION LIMIT = -1 \
|
CONNECTION LIMIT = -1 \
|
||||||
IS_TEMPLATE = False;"
|
IS_TEMPLATE = False;"
|
||||||
|
|
||||||
kubectl -n futureporn exec postgres -- psql -U postgres --command "\
|
# kubectl -n futureporn exec postgres -- psql -U postgres --command "\
|
||||||
CREATE DATABASE trigger \
|
# CREATE DATABASE trigger \
|
||||||
WITH \
|
# WITH \
|
||||||
OWNER = postgres \
|
# OWNER = postgres \
|
||||||
ENCODING = 'UTF8' \
|
# ENCODING = 'UTF8' \
|
||||||
LOCALE_PROVIDER = 'libc' \
|
# LOCALE_PROVIDER = 'libc' \
|
||||||
CONNECTION LIMIT = -1 \
|
# CONNECTION LIMIT = -1 \
|
||||||
IS_TEMPLATE = False;"
|
# IS_TEMPLATE = False;"
|
||||||
|
|
||||||
|
|
||||||
# ./temporal-sql-tool -u $(SQL_USER) --pw $(SQL_PASSWORD) -p 5432 --pl postgres12 --db $(TEMPORAL_DB) drop -f
|
# ./temporal-sql-tool -u $(SQL_USER) --pw $(SQL_PASSWORD) -p 5432 --pl postgres12 --db $(TEMPORAL_DB) drop -f
|
||||||
|
|
Loading…
Reference in New Issue