From 658a3b26287c3ce6264c27d8dc1118b27474d936 Mon Sep 17 00:00:00 2001 From: Joel Carter Date: Sun, 26 Feb 2023 15:29:45 -0600 Subject: [PATCH] Move everything to spec folders --- packages/api/src/{ => spec}/ApiEndpoint.spec.ts | 2 +- packages/api/src/{ => spec}/getApiStage.spec.ts | 2 +- packages/api/src/spec/tsconfig.json | 6 ++++++ packages/delay/src/{ => spec}/delay.spec.ts | 2 +- packages/delay/src/spec/tsconfig.json | 6 ++++++ packages/eth-address/src/{ => spec}/EthAddress.spec.ts | 2 +- packages/eth-address/src/spec/tsconfig.json | 6 ++++++ packages/exists/src/{ => spec}/exists.spec.ts | 2 +- packages/exists/src/spec/tsconfig.json | 6 ++++++ packages/forget/src/{ => spec}/forget.spec.ts | 2 +- packages/forget/src/spec/tsconfig.json | 6 ++++++ packages/jest-helpers/src/{ => spec}/describeIf.spec.ts | 2 +- packages/jest-helpers/src/{ => spec}/itIf.spec.ts | 2 +- packages/jest-helpers/src/{ => spec}/testIf.spec.ts | 2 +- packages/jest-helpers/src/spec/tsconfig.json | 6 ++++++ packages/log/src/{ => spec}/Log.spec.ts | 2 +- packages/log/src/spec/tsconfig.json | 6 ++++++ packages/promise/src/{ => spec}/fulfilled.spec.ts | 2 +- packages/promise/src/{ => spec}/fulfilledValues.spec.ts | 2 +- packages/promise/src/{ => spec}/rejected.spec.ts | 2 +- packages/promise/src/spec/tsconfig.json | 6 ++++++ 21 files changed, 61 insertions(+), 13 deletions(-) rename packages/api/src/{ => spec}/ApiEndpoint.spec.ts (80%) rename packages/api/src/{ => spec}/getApiStage.spec.ts (78%) create mode 100644 packages/api/src/spec/tsconfig.json rename packages/delay/src/{ => spec}/delay.spec.ts (91%) create mode 100644 packages/delay/src/spec/tsconfig.json rename packages/eth-address/src/{ => spec}/EthAddress.spec.ts (88%) create mode 100644 packages/eth-address/src/spec/tsconfig.json rename packages/exists/src/{ => spec}/exists.spec.ts (96%) create mode 100644 packages/exists/src/spec/tsconfig.json rename packages/forget/src/{ => spec}/forget.spec.ts (96%) create mode 100644 packages/forget/src/spec/tsconfig.json rename packages/jest-helpers/src/{ => spec}/describeIf.spec.ts (87%) rename packages/jest-helpers/src/{ => spec}/itIf.spec.ts (84%) rename packages/jest-helpers/src/{ => spec}/testIf.spec.ts (83%) create mode 100644 packages/jest-helpers/src/spec/tsconfig.json rename packages/log/src/{ => spec}/Log.spec.ts (98%) create mode 100644 packages/log/src/spec/tsconfig.json rename packages/promise/src/{ => spec}/fulfilled.spec.ts (95%) rename packages/promise/src/{ => spec}/fulfilledValues.spec.ts (94%) rename packages/promise/src/{ => spec}/rejected.spec.ts (95%) create mode 100644 packages/promise/src/spec/tsconfig.json diff --git a/packages/api/src/ApiEndpoint.spec.ts b/packages/api/src/spec/ApiEndpoint.spec.ts similarity index 80% rename from packages/api/src/ApiEndpoint.spec.ts rename to packages/api/src/spec/ApiEndpoint.spec.ts index 727b984b..3585b9b2 100644 --- a/packages/api/src/ApiEndpoint.spec.ts +++ b/packages/api/src/spec/ApiEndpoint.spec.ts @@ -1,4 +1,4 @@ -import { ApiEndpoint } from './ApiEndpoint' +import { ApiEndpoint } from '../ApiEndpoint' describe('ApiEndpoint', () => { test('checking happy path', () => { diff --git a/packages/api/src/getApiStage.spec.ts b/packages/api/src/spec/getApiStage.spec.ts similarity index 78% rename from packages/api/src/getApiStage.spec.ts rename to packages/api/src/spec/getApiStage.spec.ts index 4f8bddd2..60645995 100644 --- a/packages/api/src/getApiStage.spec.ts +++ b/packages/api/src/spec/getApiStage.spec.ts @@ -1,4 +1,4 @@ -import { getApiStage } from './getApiStage' +import { getApiStage } from '../getApiStage' describe('getApiStage', () => { test('checking happy path', () => { diff --git a/packages/api/src/spec/tsconfig.json b/packages/api/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/api/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/delay/src/delay.spec.ts b/packages/delay/src/spec/delay.spec.ts similarity index 91% rename from packages/delay/src/delay.spec.ts rename to packages/delay/src/spec/delay.spec.ts index fd35cec9..98b2603c 100644 --- a/packages/delay/src/delay.spec.ts +++ b/packages/delay/src/spec/delay.spec.ts @@ -1,4 +1,4 @@ -import { delay } from './delay' +import { delay } from '../delay' describe('delay', () => { test('checking happy path', async () => { diff --git a/packages/delay/src/spec/tsconfig.json b/packages/delay/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/delay/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/eth-address/src/EthAddress.spec.ts b/packages/eth-address/src/spec/EthAddress.spec.ts similarity index 88% rename from packages/eth-address/src/EthAddress.spec.ts rename to packages/eth-address/src/spec/EthAddress.spec.ts index 9617152e..9c89b847 100644 --- a/packages/eth-address/src/EthAddress.spec.ts +++ b/packages/eth-address/src/spec/EthAddress.spec.ts @@ -1,4 +1,4 @@ -import { EthAddress } from './EthAddress' +import { EthAddress } from '../EthAddress' describe('EthAddress', () => { test('checking happy path', () => { diff --git a/packages/eth-address/src/spec/tsconfig.json b/packages/eth-address/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/eth-address/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/exists/src/exists.spec.ts b/packages/exists/src/spec/exists.spec.ts similarity index 96% rename from packages/exists/src/exists.spec.ts rename to packages/exists/src/spec/exists.spec.ts index 973508fe..a0e627b4 100644 --- a/packages/exists/src/exists.spec.ts +++ b/packages/exists/src/spec/exists.spec.ts @@ -1,4 +1,4 @@ -import { exists } from './index' +import { exists } from '../index' const filterableValues = [undefined, null] const nonfilterableValue = {} diff --git a/packages/exists/src/spec/tsconfig.json b/packages/exists/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/exists/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/forget/src/forget.spec.ts b/packages/forget/src/spec/forget.spec.ts similarity index 96% rename from packages/forget/src/forget.spec.ts rename to packages/forget/src/spec/forget.spec.ts index 3c09e631..3ff2b0f8 100644 --- a/packages/forget/src/forget.spec.ts +++ b/packages/forget/src/spec/forget.spec.ts @@ -1,6 +1,6 @@ import { delay } from '@xylabs/delay' -import { forget, ForgetPromise } from './forget' +import { forget, ForgetPromise } from '../forget' describe('forget', () => { beforeAll(() => { diff --git a/packages/forget/src/spec/tsconfig.json b/packages/forget/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/forget/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/jest-helpers/src/describeIf.spec.ts b/packages/jest-helpers/src/spec/describeIf.spec.ts similarity index 87% rename from packages/jest-helpers/src/describeIf.spec.ts rename to packages/jest-helpers/src/spec/describeIf.spec.ts index 5bcd9f02..3c5983ce 100644 --- a/packages/jest-helpers/src/describeIf.spec.ts +++ b/packages/jest-helpers/src/spec/describeIf.spec.ts @@ -1,4 +1,4 @@ -import { describeIf } from './describeIf' +import { describeIf } from '../describeIf' describe('describeIf', () => { describeIf(true)('This block should run', () => { diff --git a/packages/jest-helpers/src/itIf.spec.ts b/packages/jest-helpers/src/spec/itIf.spec.ts similarity index 84% rename from packages/jest-helpers/src/itIf.spec.ts rename to packages/jest-helpers/src/spec/itIf.spec.ts index 33344caf..7faa361e 100644 --- a/packages/jest-helpers/src/itIf.spec.ts +++ b/packages/jest-helpers/src/spec/itIf.spec.ts @@ -1,4 +1,4 @@ -import { itIf } from './itIf' +import { itIf } from '../itIf' describe('itIf', () => { itIf(true)('should run', () => { diff --git a/packages/jest-helpers/src/testIf.spec.ts b/packages/jest-helpers/src/spec/testIf.spec.ts similarity index 83% rename from packages/jest-helpers/src/testIf.spec.ts rename to packages/jest-helpers/src/spec/testIf.spec.ts index 92f4c91c..0e849d54 100644 --- a/packages/jest-helpers/src/testIf.spec.ts +++ b/packages/jest-helpers/src/spec/testIf.spec.ts @@ -1,4 +1,4 @@ -import { testIf } from './testIf' +import { testIf } from '../testIf' describe('testIf', () => { testIf(true)('should run', () => { diff --git a/packages/jest-helpers/src/spec/tsconfig.json b/packages/jest-helpers/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/jest-helpers/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/log/src/Log.spec.ts b/packages/log/src/spec/Log.spec.ts similarity index 98% rename from packages/log/src/Log.spec.ts rename to packages/log/src/spec/Log.spec.ts index 9d6a6066..c9775e58 100644 --- a/packages/log/src/Log.spec.ts +++ b/packages/log/src/spec/Log.spec.ts @@ -1,4 +1,4 @@ -import { Log } from './Log' +import { Log } from '../Log' describe('Log', () => { test('checking happy path', () => { diff --git a/packages/log/src/spec/tsconfig.json b/packages/log/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/log/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file diff --git a/packages/promise/src/fulfilled.spec.ts b/packages/promise/src/spec/fulfilled.spec.ts similarity index 95% rename from packages/promise/src/fulfilled.spec.ts rename to packages/promise/src/spec/fulfilled.spec.ts index fe1d9618..bd6e81a8 100644 --- a/packages/promise/src/fulfilled.spec.ts +++ b/packages/promise/src/spec/fulfilled.spec.ts @@ -1,4 +1,4 @@ -import { fulfilled } from './fulfilled' +import { fulfilled } from '../fulfilled' const getAllResolvedPromises = () => { return Promise.allSettled([Promise.resolve('yes')]) diff --git a/packages/promise/src/fulfilledValues.spec.ts b/packages/promise/src/spec/fulfilledValues.spec.ts similarity index 94% rename from packages/promise/src/fulfilledValues.spec.ts rename to packages/promise/src/spec/fulfilledValues.spec.ts index 849d16bc..1e61ee5e 100644 --- a/packages/promise/src/fulfilledValues.spec.ts +++ b/packages/promise/src/spec/fulfilledValues.spec.ts @@ -1,4 +1,4 @@ -import { fulfilledValues } from './fulfilledValues' +import { fulfilledValues } from '../fulfilledValues' const getAllResolvedPromises = () => { return Promise.allSettled([Promise.resolve('yes')]) diff --git a/packages/promise/src/rejected.spec.ts b/packages/promise/src/spec/rejected.spec.ts similarity index 95% rename from packages/promise/src/rejected.spec.ts rename to packages/promise/src/spec/rejected.spec.ts index 3794a8fc..6557b4b6 100644 --- a/packages/promise/src/rejected.spec.ts +++ b/packages/promise/src/spec/rejected.spec.ts @@ -1,4 +1,4 @@ -import { rejected } from './rejected' +import { rejected } from '../rejected' const getAllResolvedPromises = () => { return Promise.allSettled([Promise.resolve('yes')]) diff --git a/packages/promise/src/spec/tsconfig.json b/packages/promise/src/spec/tsconfig.json new file mode 100644 index 00000000..c867a8e0 --- /dev/null +++ b/packages/promise/src/spec/tsconfig.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "experimentalDecorators": true + }, + "extends": "@xylabs/tsconfig-jest" +} \ No newline at end of file