Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ct-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@angular-devkit/build-angular": "^15.1.0",
"@angular/cli": "~15.1.0",
"@angular/compiler-cli": "^15.1.0",
"@playwright/test": "1.34.3",
"@playwright/test": "1.35.0",
"@sand4rt/experimental-ct-angular": "workspace:*",
"typescript": "~4.9.4"
}
Expand Down
6 changes: 2 additions & 4 deletions playwright-ct-angular/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
* limitations under the License.
*/

const { test: baseTest, expect, devices, defineConfig: originalDefineConfig } = require('@playwright/test');
const { fixtures } = require('@playwright/experimental-ct-core/lib/mount');
const { test, expect, devices, defineConfig: originalDefineConfig } = require('@playwright/experimental-ct-core');
const path = require('path');

process.env['NODE_ENV'] = 'test';
Expand All @@ -28,14 +27,13 @@ function plugin() {
() => import('@analogjs/vite-plugin-angular').then(plugin => {
if (typeof plugin.default === 'function')
return plugin.default({ jit: false })

// TODO: fix plugin resolving (default.default)
return plugin.default.default({ jit: false })
})
)
};

const test = baseTest.extend(fixtures);
const defineConfig = config => originalDefineConfig({ ...config, _plugins: [plugin] });

module.exports = { test, expect, devices, defineConfig };
8 changes: 4 additions & 4 deletions playwright-ct-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sand4rt/experimental-ct-angular",
"version": "1.34.4",
"version": "1.35.0",
"description": "Playwright Component Testing for Angular",
"homepage": "https://playwright.dev",
"repository": {
Expand Down Expand Up @@ -40,7 +40,7 @@
}
},
"dependencies": {
"@playwright/experimental-ct-core": "1.34.3",
"@playwright/experimental-ct-core": "1.35.0",
"@analogjs/vite-plugin-angular": "0.2.0-beta.13",
"@angular-devkit/build-angular": "^16.0.0",
"@angular/animations": "^16.0.0",
Expand All @@ -57,11 +57,11 @@
"zone.js": "~0.13.0"
},
"devDependencies": {
"@playwright/test": "1.34.3",
"@playwright/test": "1.35.0",
"typescript": "^5.0.4"
},
"peerDependencies": {
"@playwright/test": ">=1.34.x",
"@playwright/test": ">=1.35.0",
"typescript": ">=4.9.3"
},
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion playwright-ct-angular/register.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
* limitations under the License.
*/

export default function register(components: Record<string, any>): void
export default function pwRegister(components: Record<string, any>): void
4 changes: 2 additions & 2 deletions playwright-ct-angular/register.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* limitations under the License.
*/

import { register } from './registerSource.mjs';
import { pwRegister } from './registerSource.mjs';

export default components => {
register(components);
pwRegister(components);
};
Loading