refactor(ct-angular): disable analog plugin as it breaks component registration

This commit is contained in:
Younes Jaaidi 2024-02-23 01:21:08 +01:00
parent c27a034d8a
commit 994bf21288
No known key found for this signature in database
GPG key ID: 3126C5717BDF3241
4 changed files with 5 additions and 7 deletions

View file

@ -29,6 +29,6 @@
"@angular/cli": "~17.0.0", "@angular/cli": "~17.0.0",
"@angular/compiler-cli": "^17.0.0", "@angular/compiler-cli": "^17.0.0",
"typescript": "~5.2.0", "typescript": "~5.2.0",
"vite": "^5.0.0" "vite": "~5.0.0"
} }
} }

View file

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
import analogVitePlugin from '@analogjs/vite-plugin-angular'; import angular from '@analogjs/vite-plugin-angular';
import { defineConfig, devices } from '@playwright/experimental-ct-angular'; import { defineConfig, devices } from '@playwright/experimental-ct-angular';
import { resolve } from 'path'; import { resolve } from 'path';
@ -26,9 +26,6 @@ export default defineConfig({
use: { use: {
trace: 'on-first-retry', trace: 'on-first-retry',
ctViteConfig: { ctViteConfig: {
// plugins: [
// ...analogVitePlugin()
// ],
resolve: { resolve: {
alias: { alias: {
'@': resolve('./src'), '@': resolve('./src'),

View file

@ -1 +0,0 @@
<button (click)="submit.emit('hello')">{{title}}</button>

View file

@ -3,7 +3,9 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
@Component({ @Component({
standalone: true, standalone: true,
selector: 'button-component', selector: 'button-component',
templateUrl: './button.component.html', template: `
<button (click)="submit.emit('hello')">{{title}}</button>
`
}) })
export class ButtonComponent { export class ButtonComponent {
@Input() title!: string; @Input() title!: string;