create-selfchecks 0.1.25 → 0.1.26

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.
@@ -1,8 +1,8 @@
1
- export declare const SELFCHECKS_PACKAGE_VERSION = "0.1.25";
1
+ export declare const SELFCHECKS_PACKAGE_VERSION = "0.1.26";
2
2
  export declare const starterFiles: {
3
3
  readonly ".gitignore": "node_modules/\nplaywright-report/\ntest-results/\n.selfchecks/\n";
4
4
  readonly "README.md": "# Selfchecks starter\n\nThis project was created with `create-selfchecks` and checks that the Selfchecks\nwebsite is available.\n\n```bash\nnpx playwright install chromium\nnpm test\n\nexport SELFCHECKS_URL=https://checks.example.com\nexport SELFCHECKS_API_TOKEN=replace-with-a-secret\nnpm run selfchecks -- deploy --project starter --root .\n```\n";
5
- readonly "checkly.config.ts": "import { defineConfig } from \"@selfchecks/selfchecks\";\nimport { Frequency } from \"@selfchecks/selfchecks/constructs\";\n\nexport default defineConfig({\n projectName: \"Selfchecks starter\",\n logicalId: \"selfchecks-starter\",\n checks: {\n activated: true,\n frequency: Frequency.EVERY_10M,\n checkMatch: \"**/*.check.ts\",\n browserChecks: {\n testMatch: \"**/*.spec.ts\",\n },\n },\n});\n";
5
+ readonly "checkly.config.ts": "import { defineConfig } from \"@selfchecks/selfchecks\";\nimport { Frequency } from \"@selfchecks/selfchecks/constructs\";\n\nexport default defineConfig({\n projectName: \"Selfchecks starter\",\n logicalId: \"selfchecks-starter\",\n checks: {\n activated: true,\n frequency: Frequency.EVERY_10M,\n },\n});\n";
6
6
  readonly "checks/homepage.check.ts": "import { BrowserCheck, Frequency } from \"@selfchecks/selfchecks/constructs\";\n\nnew BrowserCheck(\"selfchecks-homepage\", {\n name: \"Selfchecks homepage\",\n activated: true,\n frequency: Frequency.EVERY_10M,\n tags: [\"starter\", \"browser\"],\n code: {\n entrypoint: \"homepage.spec.ts\",\n },\n});\n";
7
7
  readonly "checks/homepage.spec.ts": "import { expect, test } from \"@playwright/test\";\n\ntest(\"selfchecks.github.io is available\", async ({ page }) => {\n const response = await page.goto(\"https://selfchecks.github.io/\");\n\n expect(response?.ok()).toBe(true);\n await expect(page).toHaveTitle(/Selfchecks/i);\n});\n";
8
8
  readonly "playwright.config.ts": "import { defineConfig } from \"@playwright/test\";\n\nexport default defineConfig({\n testDir: \"./checks\",\n timeout: 60_000,\n use: {\n screenshot: \"only-on-failure\",\n trace: \"retain-on-failure\",\n },\n});\n";
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,WAAW,CAAC;AAEnD,eAAO,MAAM,YAAY;;;;;;;;CAiFf,CAAC;AAEX,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAyB7D"}
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,WAAW,CAAC;AAEnD,eAAO,MAAM,YAAY;;;;;;;;CA6Ef,CAAC;AAEX,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAyB7D"}
package/dist/templates.js CHANGED
@@ -1,4 +1,4 @@
1
- export const SELFCHECKS_PACKAGE_VERSION = "0.1.25";
1
+ export const SELFCHECKS_PACKAGE_VERSION = "0.1.26";
2
2
  export const starterFiles = {
3
3
  ".gitignore": `node_modules/
4
4
  playwright-report/
@@ -28,10 +28,6 @@ export default defineConfig({
28
28
  checks: {
29
29
  activated: true,
30
30
  frequency: Frequency.EVERY_10M,
31
- checkMatch: "**/*.check.ts",
32
- browserChecks: {
33
- testMatch: "**/*.spec.ts",
34
- },
35
31
  },
36
32
  });
37
33
  `,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-selfchecks",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "description": "Create a minimal Selfchecks project",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",