diff --git a/src/index.ts b/src/index.ts index 46e6100..1cff15c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1 @@ -export { randomString } from './utils/randomString.js'; \ No newline at end of file +export { randomString } from './utils/randomString.ts'; \ No newline at end of file diff --git a/tests/randomString.test.ts b/tests/randomString.test.ts index f316d9a..4ee5aa9 100644 --- a/tests/randomString.test.ts +++ b/tests/randomString.test.ts @@ -1,4 +1,4 @@ -import { randomString } from '../src/index.js' +import { randomString } from '../src/index.ts' describe('randomString', () => { it('should return a random string with the length of 10', () => { diff --git a/tsconfig.json b/tsconfig.json index 99b3dc0..e2f56d7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,7 +35,7 @@ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ - // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ + "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ diff --git a/workflows/jest.yml b/workflows/jest.yml new file mode 100644 index 0000000..27adac5 --- /dev/null +++ b/workflows/jest.yml @@ -0,0 +1,57 @@ +--- +resources: +- name: repo + type: git + icon: github + source: + uri: https://github.com/srizan10/util-utils.git + +- name: node-image + type: registry-image + source: + repository: node + tag: lts-alpine + +jobs: +- name: test + public: true + plan: + - get: node-image + - get: repo + trigger: true + - task: install + image: node-image + config: + inputs: + - name: repo + outputs: + - name: dependencies + path: repo/node_modules + platform: linux + run: + path: yarn + dir: repo + - task: build + image: node-image + config: + inputs: + - name: repo + - name: dependencies + path: repo/node_modules + platform: linux + run: + path: yarn + args: ["build"] + dir: repo + - task: test + image: node-image + config: + inputs: + - name: repo + - name: dependencies + path: repo/node_modules + platform: linux + run: + path: yarn + args: ["test"] + dir: repo \ No newline at end of file