chore: setup featherjs project

This commit is contained in:
Elias Renman
2023-05-20 09:18:45 +02:00
parent ab69ce119a
commit 0040dc6384
26 changed files with 762 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import assert from 'assert'
import axios from 'axios'
import type { Server } from 'http'
import { app } from '../src/app'
import { createClient } from '../src/client'
import rest from '@feathersjs/rest-client'
const port = app.get('port')
const appUrl = `http://${app.get('host')}:${port}`
describe('client tests', () => {
const client = createClient(rest(appUrl).axios(axios))
it('initialized the client', () => {
assert.ok(client)
})
})