Преглед изворни кода

Update core scope

Use correct scope for imports and mocks.
master
TheoryOfNekomata пре 1 година
родитељ
комит
0610a01516
7 измењених фајлова са 11 додато и 7 уклоњено
  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 Прегледај датотеку


+ 2
- 1
package.json Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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"


Loading…
Откажи
Сачувај