v1.1.0: pooled runtime, 959 tests, production hardening (0 squash)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "imhotep",
|
||||
"version": "1.0.0",
|
||||
"description": "Declarative relational UI testing for web apps",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/anomalyco/imhotep.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js"
|
||||
},
|
||||
"./playwright": {
|
||||
"types": "./dist/playwright.d.ts",
|
||||
"import": "./dist/playwright.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "node --test dist/**/*.test.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"imhotep-playwright": "^1.0.0",
|
||||
"imhotep-core": "^1.0.0",
|
||||
"imhotep-dsl": "^1.0.0",
|
||||
"imhotep-solver": "^1.0.0",
|
||||
"imhotep-reporter": "^1.0.0",
|
||||
"imhotep-extractor": "^1.0.0",
|
||||
"imhotep-state": "^1.0.0",
|
||||
"imhotep-topology": "^1.0.0",
|
||||
"imhotep-geometry": "^1.0.0",
|
||||
"imhotep-cdp": "^1.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@playwright/test": "^1.40.0",
|
||||
"playwright": "^1.40.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { test } from 'node:test'
|
||||
import assert from 'node:assert'
|
||||
|
||||
// Meta-package sanity check: ensure exports resolve
|
||||
test('meta-package exports resolve', async () => {
|
||||
const { imhotep } = await import('../src/index.js')
|
||||
assert.strictEqual(typeof imhotep, 'function')
|
||||
})
|
||||
@@ -0,0 +1,26 @@
|
||||
// Core types
|
||||
export type * from 'imhotep-core'
|
||||
|
||||
// Playwright integration (primary entry point)
|
||||
export { imhotep, imhotepComponent, imhotepStory, imhotepFixture } from 'imhotep-playwright'
|
||||
export type { ImhotepUi, ImhotepPage } from 'imhotep-playwright'
|
||||
export type { ImhotepResult } from 'imhotep-core'
|
||||
export {
|
||||
touchTarget,
|
||||
toolbarAlignment,
|
||||
cardSpacing,
|
||||
formLabelAlignment,
|
||||
modalContainment,
|
||||
} from 'imhotep-playwright'
|
||||
|
||||
// DSL
|
||||
export { expect as dslExpect, spec } from 'imhotep-dsl'
|
||||
|
||||
// Property testing
|
||||
export { enumeratedDomain, generatedDomain } from 'imhotep-core/property-contracts'
|
||||
|
||||
// Solvers
|
||||
export { evaluate } from 'imhotep-solver'
|
||||
|
||||
// Utilities
|
||||
export { createDeterministicContext } from 'imhotep-core'
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'imhotep-playwright'
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"paths": {}
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
Reference in New Issue
Block a user