diff --git a/changelog.md b/changelog.md index 5a24d4a..18cede4 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2025-01-01 - 1.0.40 - fix(test) +Fix test configuration and import path in test suite + +- Changed the test command in package.json to include the build step. +- Fixed the import path for smartssr in the test suite to point to the correct distribution directory. +- Added console log to display rendered HTML content during test execution. + ## 2025-01-01 - 1.0.39 - fix(core) Fixed package and file path typos and removed GitLab CI configuration. diff --git a/package.json b/package.json index 77c8241..2ca0d81 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "author": "Lossless GmbH", "license": "MIT", "scripts": { - "test": "(tstest test/ --web)", + "test": "(npm run build &&tstest test/ --web)", "build": "(tsbuild --web --allowimplicitany)", "serve": "tsrun scripts/serve.ts", "buildDocs": "tsdoc" diff --git a/test/test.ts b/test/test.ts index 54c29de..233e289 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,5 +1,5 @@ import { expect, tap } from '@push.rocks/tapbundle'; -import * as smartssr from '../ts/index.js'; +import * as smartssr from '../dist_ts/index.js'; let testSSRInstance: smartssr.SmartSSR; @@ -10,7 +10,8 @@ tap.test('should create a valid smartssr instance', async () => { }); tap.test('should render central.eu', async (tools) => { - await testSSRInstance.renderPage('https://lossless.com'); + const renderedPage = await testSSRInstance.renderPage('https://lossless.com'); + console.log(renderedPage); }); tap.test('should render lossless.com', async () => { diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index be58fcc..b22c973 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartssr', - version: '1.0.39', + version: '1.0.40', description: 'A smart server-side renderer that supports shadow DOM.' }