Explorar el Código

Update tests and imports

Use correct scope.
master
TheoryOfNekomata hace 1 año
padre
commit
8bbbdb6fa4
Se han modificado 5 ficheros con 9 adiciones y 5 borrados
  1. +2
    -1
      package.json
  2. +2
    -2
      src/__tests__/index.test.ts
  3. +1
    -1
      src/modules/card/__tests__/service.test.ts
  4. +1
    -1
      src/modules/card/service.ts
  5. +3
    -0
      yarn.lock

+ 2
- 1
package.json Ver fichero

@@ -58,7 +58,8 @@
"vitest": "^0.9.4"
},
"dependencies": {
"fastify": "^3.27.0"
"fastify": "^3.27.0",
"@modal-sh/oblique-strategies-core": "file:../core"
},
"scripts": {
"prepublishOnly": "pridepack clean && pridepack build",


+ 2
- 2
src/__tests__/index.test.ts Ver fichero

@@ -6,11 +6,11 @@ import {
vi,
} from 'vitest';
import { FastifyInstance } from 'fastify';
import { generate } from '@theoryofnekomata/oblique-strategies-core';
import { generate } from '@modal-sh/oblique-strategies-core';
import { createServer } from '../server';
import { addRoutes } from '../routes';

vi.mock('@theoryofnekomata/oblique-strategies-core');
vi.mock('@modal-sh/oblique-strategies-core');

describe('Example', () => {
let server: FastifyInstance;


+ 1
- 1
src/modules/card/__tests__/service.test.ts Ver fichero

@@ -8,7 +8,7 @@ import {
import { generate } from '@modal-sh/oblique-strategies-core';
import { CardService, CardServiceImpl } from '../service';

vi.mock('@theoryofnekomata/oblique-strategies-core');
vi.mock('@modal-sh/oblique-strategies-core');

describe('CardService', () => {
let cardService: CardService;


+ 1
- 1
src/modules/card/service.ts Ver fichero

@@ -1,4 +1,4 @@
import { generate as coreGenerate } from '@theoryofnekomata/oblique-strategies-core';
import { generate as coreGenerate } from '@modal-sh/oblique-strategies-core';

export interface CardService {
generate(cards?: string[]): string


+ 3
- 0
yarn.lock Ver fichero

@@ -327,6 +327,9 @@
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-4.1.18.tgz#eb960654aec3ebb6f39a9469845659a8c1d50b3a"
integrity sha512-Ap8MOYbyvEilK1+sNY6yh6LmsHSp7f5zzSGlY4AemhbTcoultcozEXPzx42OO6WjoriOsw88aW8TiqgYdXwsxg==
"@modal-sh/oblique-strategies-core@file:../core":
version "0.0.0"
"@next/eslint-plugin-next@^12.0.7":
version "12.1.5"
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-12.1.5.tgz#273885b35e6bbcd40ff1436d2a8d0ec03fb6f6ef"


Cargando…
Cancelar
Guardar