mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Merge pull request #6448 from Ocelot-Social-Community/typescript-fix
fix(backend): typescript fix
This commit is contained in:
commit
e657b8bf7d
@ -13,7 +13,7 @@
|
|||||||
"start": "node build/",
|
"start": "node build/",
|
||||||
"build": "tsc && ./scripts/build.copy.files.sh",
|
"build": "tsc && ./scripts/build.copy.files.sh",
|
||||||
"dev": "nodemon --exec ts-node src/ -e js,ts,gql",
|
"dev": "nodemon --exec ts-node src/ -e js,ts,gql",
|
||||||
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/ -e js,gql",
|
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/ -e js,ts,gql",
|
||||||
"lint": "eslint src --config .eslintrc.js",
|
"lint": "eslint src --config .eslintrc.js",
|
||||||
"test": "cross-env NODE_ENV=test NODE_OPTIONS=--max-old-space-size=8192 jest --runInBand --coverage --forceExit --detectOpenHandles",
|
"test": "cross-env NODE_ENV=test NODE_OPTIONS=--max-old-space-size=8192 jest --runInBand --coverage --forceExit --detectOpenHandles",
|
||||||
"db:clean": "ts-node src/db/clean.ts",
|
"db:clean": "ts-node src/db/clean.ts",
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { fileLoader, mergeResolvers } from 'merge-graphql-schemas'
|
import { fileLoader, mergeResolvers } from 'merge-graphql-schemas'
|
||||||
|
|
||||||
const resolversArray = fileLoader(path.join(__dirname, './!(*.spec).ts'))
|
// the files must be correctly evaluated in built and dev state - therefore accept both js & ts files
|
||||||
|
const resolversArray = fileLoader(path.join(__dirname, './!(*.spec).(ts|js)'))
|
||||||
export default mergeResolvers(resolversArray)
|
export default mergeResolvers(resolversArray)
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { expect } from 'chai'
|
|||||||
import { GraphQLClient } from 'graphql-request'
|
import { GraphQLClient } from 'graphql-request'
|
||||||
import Factory from '../../../src/db/factories'
|
import Factory from '../../../src/db/factories'
|
||||||
const debug = require('debug')('ea:test:steps')
|
const debug = require('debug')('ea:test:steps')
|
||||||
|
const host: any = null
|
||||||
const client = new GraphQLClient(host)
|
const client = new GraphQLClient(host)
|
||||||
|
|
||||||
function createUser (slug) {
|
function createUser (slug) {
|
||||||
@ -4,6 +4,11 @@ import request from 'request'
|
|||||||
const debug = require('debug')('ea:test:world')
|
const debug = require('debug')('ea:test:world')
|
||||||
|
|
||||||
class CustomWorld {
|
class CustomWorld {
|
||||||
|
lastResponses: any
|
||||||
|
lastContentType: any
|
||||||
|
lastInboxUrl: any
|
||||||
|
lastActivity: any
|
||||||
|
statusCode: any
|
||||||
constructor () {
|
constructor () {
|
||||||
// webFinger.feature
|
// webFinger.feature
|
||||||
this.lastResponses = []
|
this.lastResponses = []
|
||||||
Loading…
x
Reference in New Issue
Block a user