@abstractest/core
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "@abstractest/core", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "abstractest core utils", | ||
@@ -26,8 +26,8 @@ "publishConfig": { | ||
"scripts": { | ||
"build": "concurrently 'npm:build:*'", | ||
"build:esm": "node ../infra/scripts/build.cjs", | ||
"build:cjs": "node ../infra/scripts/build.cjs --cjs", | ||
"build": "concurrently --kill-others-on-fail 'npm:build:*'", | ||
"build:esm": "node ../infra/scripts/build.mjs", | ||
"build:cjs": "node ../infra/scripts/build.mjs --cjs", | ||
"build:dts": "tsc --emitDeclarationOnly --skipLibCheck --outDir target/dts", | ||
"build:docs": "typedoc --options src/main/typedoc", | ||
"test": "concurrently 'npm:test:*'", | ||
"test": "concurrently --kill-others-on-fail 'npm:test:*'", | ||
"test:lint": "eslint -c src/test/lint/.eslintrc.json src", | ||
@@ -53,7 +53,10 @@ "test:unit": "c8 -r lcov -r text -o target/coverage -x src/test -x target node --loader ts-node/esm --experimental-specifier-resolution=node --experimental-vm-modules ../infra/scripts/test.mjs" | ||
"homepage": "https://github.com/antongolub/abstractest#readme", | ||
"dependencies": { | ||
"@abstractest/types": "0.0.0" | ||
}, | ||
"devDependencies": { | ||
"@abstractest/infra": "workspace:*", | ||
"@types/node": "^20.2.5", | ||
"@types/node": "^20.2.6", | ||
"ts-node": "^10.9.1" | ||
} | ||
} |
@@ -9,1 +9,2 @@ import { Describe, It, Expect, Hook } from './interface'; | ||
export declare const afterEach: Hook; | ||
export declare const init: () => Promise<void>; |
export * from './api'; | ||
export * from './context'; | ||
export * from './interface'; | ||
export * from './runner'; | ||
export * from './util'; |
@@ -1,38 +0,1 @@ | ||
export type Done = (result?: any) => void; | ||
export type TestFn = (done: Done) => void | Promise<void>; | ||
export type Test = (name: string, fn?: TestFn) => void; | ||
export type It = Test & { | ||
only: Test; | ||
skip: Test; | ||
todo: Test; | ||
}; | ||
export type SuiteFn = (done: Done) => void; | ||
export type DescribeSuite = (name: string, fn?: SuiteFn) => void; | ||
export type Describe = DescribeSuite & { | ||
only: DescribeSuite; | ||
skip: DescribeSuite; | ||
todo: DescribeSuite; | ||
}; | ||
export type HookFn = (done: Done) => any; | ||
export type Hook = (fn: HookFn) => void | Promise<void>; | ||
export type TestApi = { | ||
describe: Describe; | ||
it: It; | ||
expect: Expect; | ||
before: Hook; | ||
beforeEach: Hook; | ||
after: Hook; | ||
afterEach: Hook; | ||
}; | ||
export type Run = (opts: { | ||
cwd: string; | ||
include: string[]; | ||
}) => Promise<any>; | ||
export type Runner = { | ||
name: string; | ||
run: Run; | ||
api: TestApi; | ||
}; | ||
export type Expect = (val: any) => { | ||
toEqual(val: any): void; | ||
}; | ||
export * from '@abstractest/types'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
21812
12
1
65
12
+ Added@abstractest/types@0.0.0
+ Added@abstractest/types@0.0.0(transitive)