diff --git a/test/fixtures/build-declarationDir/package.json b/test/fixtures/build-declarationDir/package.json deleted file mode 100644 index 0df961d64..000000000 --- a/test/fixtures/build-declarationDir/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "scripts": { - "build": "tsdx build" - }, - "name": "build-declarationdir", - "license": "MIT" -} diff --git a/test/fixtures/build-declarationDir/src/foo.ts b/test/fixtures/build-declarationDir/src/foo.ts deleted file mode 100644 index 0abb9556d..000000000 --- a/test/fixtures/build-declarationDir/src/foo.ts +++ /dev/null @@ -1 +0,0 @@ -export const foo = () => 'bar'; diff --git a/test/fixtures/build-declarationDir/src/index.ts b/test/fixtures/build-declarationDir/src/index.ts deleted file mode 100644 index 1716e60ed..000000000 --- a/test/fixtures/build-declarationDir/src/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -import './syntax/nullish-coalescing'; -import './syntax/optional-chaining'; - -export { foo } from './foo'; - -export const sum = (a: number, b: number) => { - if ('development' === process.env.NODE_ENV) { - console.log('fuck'); - } - return a + b; -}; diff --git a/test/fixtures/build-declarationDir/src/syntax/nullish-coalescing.ts b/test/fixtures/build-declarationDir/src/syntax/nullish-coalescing.ts deleted file mode 100644 index 8ceb5505b..000000000 --- a/test/fixtures/build-declarationDir/src/syntax/nullish-coalescing.ts +++ /dev/null @@ -1,5 +0,0 @@ -// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#nullish-coalescing - -const bar = () => {}; -const foo = false; -export const x = foo ?? bar(); diff --git a/test/fixtures/build-declarationDir/src/syntax/optional-chaining.ts b/test/fixtures/build-declarationDir/src/syntax/optional-chaining.ts deleted file mode 100644 index 6978989b4..000000000 --- a/test/fixtures/build-declarationDir/src/syntax/optional-chaining.ts +++ /dev/null @@ -1,3 +0,0 @@ -// https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#optional-chaining - -export const foo = (foo?: { bar: string }) => foo?.bar || 'bar'; diff --git a/test/fixtures/build-declarationDir/test/blah.test.ts b/test/fixtures/build-declarationDir/test/blah.test.ts deleted file mode 100644 index c14b0da80..000000000 --- a/test/fixtures/build-declarationDir/test/blah.test.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { sum } from '../src'; - -describe('fuck', () => { - it('works', () => { - expect(sum(1, 1)).toEqual(2); - }); -}); diff --git a/test/fixtures/build-declarationDir/tsconfig.json b/test/fixtures/build-declarationDir/tsconfig.json deleted file mode 100644 index cfb5c5e23..000000000 --- a/test/fixtures/build-declarationDir/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "ESNext", - "lib": ["dom", "esnext"], - "declaration": true, - "declarationDir": "typings", - "declarationMap": true, - "sourceMap": true, - "rootDir": "./src", - "strict": true, - "noImplicitAny": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "strictPropertyInitialization": true, - "noImplicitThis": true, - "alwaysStrict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "moduleResolution": "node", - "baseUrl": ".", - "jsx": "react", - "esModuleInterop": true - }, - "include": ["src", "types"] -}