chore: tf

This commit is contained in:
2023-11-11 15:58:16 +01:00
parent 0248d70581
commit 8232d0b099
4 changed files with 60 additions and 3 deletions

View File

@@ -1 +1 @@
export { randomString } from './utils/randomString.js';
export { randomString } from './utils/randomString.ts';

View File

@@ -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', () => {

View File

@@ -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. */

57
workflows/jest.yml Normal file
View File

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