fix: update dependencies to latest

This commit is contained in:
2023-07-22 16:26:27 +02:00
parent 23d2a9da71
commit 9a1684e22b
123 changed files with 2322 additions and 5765 deletions

View File

@ -1,18 +1,20 @@
import tap from 'tap'
import test from 'node:test'
import assert from 'node:assert/strict'
import sinon from 'sinon'
import { application } from 'application.js'
import { application } from '#src/application.js'
{{#if shouldBeAuthenticated}}
import { authenticateUserTest } from '__test__/utils/authenticateUserTest.js'
import { authenticateUserTest } from '#src/__test__/utils/authenticateUserTest.js'
{{/if}}
import prisma from 'tools/database/prisma.js'
import prisma from '#src/tools/database/prisma.js'
await tap.test('{{httpMethod}} {{url}}', async (t) => {
await test('{{httpMethod}} {{url}}', async (t) => {
t.afterEach(() => {
sinon.restore()
})
await t.test('succeeds', async (t) => {
await t.test('succeeds', async () => {
{{#if shouldBeAuthenticated}}
const { accessToken } = await authenticateUserTest()
{{/if}}
@ -32,6 +34,6 @@ await tap.test('{{httpMethod}} {{url}}', async (t) => {
payload: {}
})
// const responseJson = response.json()
t.equal(response.statusCode, 200)
assert.strictEqual(response.statusCode, 200)
})
})

View File

@ -1,10 +1,10 @@
import { Static, Type } from '@sinclair/typebox'
import { FastifyPluginAsync, FastifySchema } from 'fastify'
import prisma from 'tools/database/prisma.js'
import { fastifyErrors } from 'models/utils.js'
import prisma from '#src/tools/database/prisma.js'
import { fastifyErrors } from '#src/models/utils.js'
{{#if shouldBeAuthenticated}}
import authenticateUser from 'tools/plugins/authenticateUser.js'
import authenticateUser from '#src/tools/plugins/authenticateUser.js'
{{/if}}
const body{{sentenceCase httpMethod}}ServiceSchema = Type.Object({