diff --git a/Testing/Tests/SimilarFindFileFolder/README.md b/Testing/Tests/SimilarFindFileFolder/README.md new file mode 100644 index 0000000..cbd5c9f --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/README.md @@ -0,0 +1 @@ +This tests if the findFiles folder detection takes into account non exact folder names when the expected file is part of the name of the folder. diff --git a/Testing/Tests/SimilarFindFileFolder/package-lock.json b/Testing/Tests/SimilarFindFileFolder/package-lock.json new file mode 100644 index 0000000..5847a32 --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "test-similar-find-files-folder", + "version": "0.0.0", + "lockfileVersion": 1 +} diff --git a/Testing/Tests/SimilarFindFileFolder/package.json b/Testing/Tests/SimilarFindFileFolder/package.json new file mode 100644 index 0000000..eda0a9f --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/package.json @@ -0,0 +1,12 @@ +{ + "name": "test-similar-find-files-folder", + "version": "0.0.0", + "description": "", + "main": "src/index.ts", + "type": "module", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC" +} diff --git a/Testing/Tests/SimilarFindFileFolder/src/Library/React.ts b/Testing/Tests/SimilarFindFileFolder/src/Library/React.ts new file mode 100644 index 0000000..8b6872c --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/src/Library/React.ts @@ -0,0 +1,2 @@ +// SimilarFindFileFolder/src/Library/React.ts +export const helloWorld = 'helloWorld'; diff --git a/Testing/Tests/SimilarFindFileFolder/src/Library/ReactFlight/index.ts b/Testing/Tests/SimilarFindFileFolder/src/Library/ReactFlight/index.ts new file mode 100644 index 0000000..92e0249 --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/src/Library/ReactFlight/index.ts @@ -0,0 +1,6 @@ +// SimilarFindFileFolder/src/Library/ReactFlight/index.ts +export async function stuff(): Promise<'reactFlight'> { + console.log(`I'm react Flight`); + + return 'reactFlight'; +} diff --git a/Testing/Tests/SimilarFindFileFolder/src/index.ts b/Testing/Tests/SimilarFindFileFolder/src/index.ts new file mode 100644 index 0000000..6ba8665 --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/src/index.ts @@ -0,0 +1,8 @@ +// Template/src/index.ts +import assert from 'assert'; +import * as React from './Library/React'; +import { stuff } from './Library/ReactFlight'; + +assert.equal(React.helloWorld, 'helloWorld'); + +stuff().then((result) => assert.equal(result, 'reactFlight')); diff --git a/Testing/Tests/SimilarFindFileFolder/tsconfig.json b/Testing/Tests/SimilarFindFileFolder/tsconfig.json new file mode 100644 index 0000000..c779ddb --- /dev/null +++ b/Testing/Tests/SimilarFindFileFolder/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "Node", + "allowSyntheticDefaultImports": true + } +}