@autometa/runner 0.4.5 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @autometa/runner
2
2
 
3
+ ## 0.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - @autometa/gherkin@0.6.5
8
+ - @autometa/http@1.4.6
9
+ - @autometa/scopes@0.5.5
10
+ - @autometa/test-builder@0.2.6
11
+ - @autometa/coordinator@0.3.8
12
+ - @autometa/events@0.2.17
13
+ - @autometa/jest-executor@0.4.8
14
+
15
+ ## 0.4.6
16
+
17
+ ### Patch Changes
18
+
19
+ - @autometa/gherkin@0.6.4
20
+ - @autometa/http@1.4.5
21
+ - @autometa/scopes@0.5.4
22
+ - @autometa/test-builder@0.2.5
23
+ - @autometa/coordinator@0.3.7
24
+ - @autometa/events@0.2.16
25
+ - @autometa/jest-executor@0.4.7
26
+
3
27
  ## 0.4.5
4
28
 
5
29
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autometa/runner",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -20,37 +20,37 @@
20
20
  "@typescript-eslint/parser": "^5.54.1",
21
21
  "@vitest/coverage-istanbul": "^0.31.0",
22
22
  "eslint": "^8.37.0",
23
+ "eslint-config-custom": "0.6.0",
23
24
  "eslint-config-prettier": "^8.3.0",
24
25
  "istanbul": "^0.4.5",
25
26
  "rimraf": "^4.1.2",
27
+ "tsconfig": " *",
26
28
  "tsup": "^7.2.0",
27
29
  "typescript": "^4.9.5",
28
- "vitest": "0.34.6",
29
- "eslint-config-custom": "0.6.0",
30
- "tsconfig": "0.7.0"
30
+ "vitest": "0.34.6"
31
31
  },
32
32
  "dependencies": {
33
- "@cucumber/cucumber-expressions": "^16.1.2",
34
- "colors-cli": "^1.0.32",
35
33
  "@autometa/app": "^0.3.2",
36
34
  "@autometa/asserters": "^0.1.8",
37
35
  "@autometa/bind-decorator": "^0.5.1",
38
- "@autometa/coordinator": "^0.3.6",
36
+ "@autometa/config": "^0.1.21",
37
+ "@autometa/coordinator": "^0.3.8",
39
38
  "@autometa/cucumber-expressions": "^0.3.11",
40
39
  "@autometa/datetime": "^0.1.16",
41
- "@autometa/events": "^0.2.15",
42
- "@autometa/config": "^0.1.21",
40
+ "@autometa/errors": "^0.2.2",
41
+ "@autometa/events": "^0.2.17",
43
42
  "@autometa/file-proxies": "^0.1.0",
44
43
  "@autometa/fixture-proxies": "^0.1.3",
45
- "@autometa/gherkin": "^0.6.3",
46
- "@autometa/http": "^1.4.4",
47
- "@autometa/jest-executor": "^0.4.6",
44
+ "@autometa/gherkin": "^0.6.5",
45
+ "@autometa/http": "^1.4.6",
48
46
  "@autometa/injection": "^0.1.1",
49
- "@autometa/scopes": "^0.5.3",
47
+ "@autometa/jest-executor": "^0.4.8",
50
48
  "@autometa/phrases": "^0.1.12",
49
+ "@autometa/scopes": "^0.5.5",
50
+ "@autometa/test-builder": "^0.2.6",
51
51
  "@autometa/types": "^0.4.1",
52
- "@autometa/test-builder": "^0.2.4",
53
- "@autometa/errors": "^0.2.2"
52
+ "@cucumber/cucumber-expressions": "^16.1.2",
53
+ "colors-cli": "^1.0.32"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run --passWithNoTests",
@@ -60,5 +60,6 @@
60
60
  "clean": "rimraf dist",
61
61
  "build": "tsup",
62
62
  "build:watch": "tsup --watch"
63
- }
63
+ },
64
+ "readme": "# Autometa\n\n[Full Docs](https://bendat.github.io/autometa/docs/cucumber/test_runner/intro/)\n\n# NOTICE\n\nAutometa is under construction. It is currently unstable, poorly documented and not production ready for most cases.\n\nCheck back soon.\n\nThe following libraries may be considered relatively stable, but may contain bugs or unclear errors\n\n- [Overloaded](libraries/overloaded/) - Function and method overloads that are as pleasant to make as they are to use\n- [Bind Decorator](libraries/bind-decorator/) - Binds the `this` keyword on a class method. Respectfully a fork of [bind-decorator](https://www.npmjs.com/package/autobind-decorator)\n- [Status Codes](libraries/status-codes/) - Object containing HTTP status\ncodes and status messages, visible in the editor via `as const`\n\n# Autometa\n\n_Autometa_ is an early-development automation framework toolkit, which provides libraries to help automate the automation process on node with libraries to\nhelp bootstrap your node automation framework, for API or E2E testing.\n\n[Full Docs](https://bendat.github.io/autometa/docs/cucumber/test_runner/intro/)\n\n\n## Cucumber Runner\n\nThe Cucumber Runner lets you build and execute Cucumber style tests with alternative test runners. Currently supported are `jest` and `vitest`. Mocha\nlikely works but has not been tested.\n\nInitially inspired by [jest-cucumber](github.com/bencompton/jest-cucumber) provides a customizable hybrid approach between cucumbers flat global steps\nand jest-cucumbers nested spec-like tests.\n\nDependency injection is supported to make initializing client classes needed to interface with your service or website simple and logic-free, with unique copies\nprovided to each executing tests.\n\n```ts title='Cucumber like'\nimport { Feature, Given, When, Then, Before } from \"@autometa/cucumber-runner\";\nimport { App } from \"./my-app\";\nimport * as seedData from \"./seed-data\";\n\nBefore(\"Seed the database\", async ({ dbClient }: App) => {\n await dbClient.seed(seedData);\n});\nGiven(\"a user who wants to log in\", () => {});\nWhen(\"a user submits their credentials\", () => {});\nThen(\"a user sees their\", () => {});\n\n// tests assembled automatically\nFeature(\"./my-feature.feature\");\n```\n\nSteps can also be nested or groups to override higher level\nsteps.\n\n```ts title='Jest-Cucumber like'\nimport {\n Feature,\n Given,\n When,\n Then,\n Before,\n ScenarioOutline,\n Scenario,\n Rule,\n} from \"@autometa/cucumber-runner\";\nimport { App } from \"./my-app\";\nimport * as seedData from \"./seed-data\";\n\nBefore(\"Seed the database\", async ({ dbClient }: App) => {\n await dbClient.seed(seedData);\n});\nGiven(\"a user who wants to log in\", () => {});\nWhen(\"a user submits their credentials\", () => {});\n\nFeature(() => {\n Scenario(\"a user logs in successfully\", () => {\n Then(\"a user sees their profile\", () => {});\n });\n\n Scenario(\"a user cannot log in without a password\", () => {\n Then(\n \"a user is informed they cannot log in\",\n (expectedError: string) => {}\n );\n });\n Rule(\"a rule\", () => {\n ScenarioOutline(\"some outline\", () => {\n // define steps unique to `some outline`\n });\n });\n}, \"./my-feature.feature\");\n```\n\n## Dto Builder\n\nImplementation of the Builder pattern that allows automatically generating\nbuilder classes from a DTO class prototype, with type-safe builder methods in\nplace of DTO properties.\n\n```ts\nimport { dto, Builder } from '@autometa/dto-builder'\nexport class UserDto {\n id: number\n username: string,\n // default values, factories, dtos\n @DTO.dto(AddressDto)\n address: AddressDto\n @DTO.date()\n createdAt: Date\n}\n// or \n// avoid duplicating interface properties\nexport class UserDto extends DTO<IUser> {}\n\nconst UserDtoBuilder = Builder(UserDto);\n\nconst user = new UserDtoBuilder().id(1).name('bob').build()\n\n// compilation error, 'first argument of \"id\" must be a number\"\n new UserDtoBuilder().id('1').name('bob').build()\n // force it to pass a string\n new UserDtoBuilder().id('1' as unknown as number).name('bob').build()\n```\n"
64
65
  }
@@ -1,4 +0,0 @@
1
-
2
- > @autometa/runner@0.3.0 lint:fix /Users/ben.aherne/Documents/GitHub/autometa/packages/autometa
3
- > eslint . --fix "--max-warnings=0"
4
-
@@ -1,12 +0,0 @@
1
-
2
- > @autometa/runner@0.4.2 test /Users/ben.aherne/Documents/GitHub/autometa/packages/autometa
3
- > vitest run --passWithNoTests
4
-
5
-
6
- RUN v0.34.6 /Users/ben.aherne/Documents/GitHub/autometa/packages/autometa
7
-
8
- include: **/*.{test,spec}.?(c|m)[jt]s?(x)
9
- exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*
10
- watch exclude: **/node_modules/**, **/dist/**
11
- No test files found, exiting with code 0
12
-