Skip to content

Commit

Permalink
fix: finish api and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Sep 10, 2023
1 parent 477148b commit 3ad837d
Show file tree
Hide file tree
Showing 12 changed files with 3,617 additions and 0 deletions.
17 changes: 17 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { JestConfigWithTsJest } from "ts-jest";

const jestConfig: JestConfigWithTsJest = {
preset: "ts-jest/presets/default-esm",
testEnvironment: "node",
transform: {
"^.+\\.m?ts?$": ["ts-jest", { useESM: true }],
},
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
collectCoverage: true,
coverageDirectory: 'spec/coverage'
};

export default jestConfig;
57 changes: 57 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "@wtto00/android-tools",
"version": "0.0.1",
"description": "Node module for managing and controlling the Android Devices.",
"type": "module",
"main": "dist/lib/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/lib/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"lib"
],
"scripts": {
"build": "rm -rf lib && rm -rf esm && rollup -c",
"test": "jest --detectOpenHandles"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/wtto00/android-tools.git"
},
"keywords": [
"android",
"emulator",
"control",
"avd",
"adb",
"sdkmanager",
"androidctrl"
],
"author": "wtto00 <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wtto00/android-tools/issues"
},
"homepage": "https://github.com/wtto00/android-tools#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-typescript": "^11.1.3",
"@types/jest": "^29.5.4",
"@types/node": "^20.6.0",
"@types/promise-retry": "^1.1.3",
"jest": "^29.6.4",
"promise-retry": "^2.0.1",
"rollup": "^3.29.0",
"rollup-plugin-dts": "^6.0.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
}
}
Loading

0 comments on commit 3ad837d

Please sign in to comment.