Ver código fonte

Update core scope

Use correct scope for imports and mocks.
master
TheoryOfNekomata 1 ano atrás
pai
commit
0610a01516
7 arquivos alterados com 11 adições e 7 exclusões
  1. +0
    -0
      __mocks__/@modal-sh/oblique-strategies-core.ts
  2. +2
    -1
      package.json
  3. +2
    -2
      src/__tests__/formatting.test.ts
  4. +1
    -1
      src/__tests__/presenters.test.ts
  5. +2
    -2
      src/__tests__/readers.test.ts
  6. +1
    -1
      src/app.ts
  7. +3
    -0
      yarn.lock

__mocks__/@theoryofnekomata/oblique-strategies-core.ts → __mocks__/@modal-sh/oblique-strategies-core.ts Ver arquivo


+ 2
- 1
package.json Ver arquivo

@@ -92,6 +92,7 @@
"chalk": "^5.0.1",
"fetch-ponyfill": "^7.1.0",
"wrap-ansi": "^8.0.1",
"yargs": "^17.4.1"
"yargs": "^17.4.1",
"@modal-sh/oblique-strategies-core": "file:../core"
}
}

+ 2
- 2
src/__tests__/formatting.test.ts Ver arquivo

@@ -1,5 +1,5 @@
import chalk from 'chalk';
import * as obliqueStrategiesCore from '@theoryofnekomata/oblique-strategies-core';
import * as obliqueStrategiesCore from '@modal-sh/oblique-strategies-core';
import {
describe,
it,
@@ -9,7 +9,7 @@ import {
import { main } from '../app';
import * as presenters from '../presenters';

vi.mock('@theoryofnekomata/oblique-strategies-core');
vi.mock('@modal-sh/oblique-strategies-core');
vi.mock('chalk');
vi.mock('wrap-ansi');
vi.mock('../readers/file');


+ 1
- 1
src/__tests__/presenters.test.ts Ver arquivo

@@ -7,7 +7,7 @@ import {
import { main, PRESENTATION } from '../app';
import * as presenters from '../presenters';

vi.mock('@theoryofnekomata/oblique-strategies-core');
vi.mock('@modal-sh/oblique-strategies-core');
vi.mock('chalk');
vi.mock('wrap-ansi');
vi.mock('../readers/file');


+ 2
- 2
src/__tests__/readers.test.ts Ver arquivo

@@ -1,4 +1,4 @@
import * as obliqueStrategiesCore from '@theoryofnekomata/oblique-strategies-core';
import * as obliqueStrategiesCore from '@modal-sh/oblique-strategies-core';
import {
afterAll,
beforeAll,
@@ -13,7 +13,7 @@ import * as https from '../readers/https';
import { main } from '../app';
import * as presenters from '../presenters';

vi.mock('@theoryofnekomata/oblique-strategies-core');
vi.mock('@modal-sh/oblique-strategies-core');
vi.mock('chalk');
vi.mock('wrap-ansi');
vi.mock('../readers/file');


+ 1
- 1
src/app.ts Ver arquivo

@@ -1,4 +1,4 @@
import { generate, getDefaultCards } from '@theoryofnekomata/oblique-strategies-core';
import { generate, getDefaultCards } from '@modal-sh/oblique-strategies-core';
import * as file from './readers/file';
import * as http from './readers/http';
import * as https from './readers/https';


+ 3
- 0
yarn.lock Ver arquivo

@@ -301,6 +301,9 @@
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-4.1.16.tgz#10c53a148d1985704cb9c507f4d4f5923c6c4307"
integrity sha512-bqXpkAfQgSD1jUNnn+kKtaHDDMPFz2kij4C71euV4fBv+YCmzkB8TKIoSuUHEdjkE0s55WoQ2OZk/ullmbiUOA==
"@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"


Carregando…
Cancelar
Salvar