@inglorious/ssx 1.4.2 → 1.4.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/ssx",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "Server-Side-X. Xecution? Xperience? Who knows.",
5
5
  "author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -56,7 +56,7 @@
56
56
  "svgo": "^4.0.0",
57
57
  "vite": "^7.1.3",
58
58
  "vite-plugin-image-optimizer": "^2.0.3",
59
- "@inglorious/web": "4.0.4"
59
+ "@inglorious/web": "4.0.6"
60
60
  },
61
61
  "devDependencies": {
62
62
  "prettier": "^3.6.2",
@@ -68,8 +68,8 @@
68
68
  "node": ">= 22"
69
69
  },
70
70
  "scripts": {
71
- "format": "prettier --write '**/*.{js,jsx}'",
72
- "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
71
+ "format": "prettier --write .",
72
+ "lint": "eslint .",
73
73
  "test:watch": "vitest",
74
74
  "test": "vitest run",
75
75
  "dev": "node ./bin/ssx.js dev -r ./src/__fixtures__",
@@ -97,7 +97,17 @@ describe("router", () => {
97
97
  const consoleSpy = vi.spyOn(console, "warn").mockImplementation(() => {})
98
98
  const pages = await getPages(PAGES_DIR)
99
99
 
100
- expect(pages).toMatchSnapshot()
100
+ // Verify that we got some pages
101
+ expect(pages.length).toBeGreaterThan(0)
102
+
103
+ // Verify specific pages exist and have correct structure
104
+ const rootPage = pages.find((p) => p.pattern === "/")
105
+ expect(rootPage).toBeDefined()
106
+ expect(rootPage.filePath).toMatch(/pages[/\\]index\.js$/)
107
+
108
+ const aboutPage = pages.find((p) => p.pattern === "/about")
109
+ expect(aboutPage).toBeDefined()
110
+ expect(aboutPage.filePath).toMatch(/pages[/\\]about\.js$/)
101
111
 
102
112
  // Dynamic route without staticPaths should be skipped (and warn)
103
113
  const blogPage = pages.find((p) => p.path.includes("/api/"))