mirror of
https://github.com/symfony/stimulus-bundle.git
synced 2026-03-24 01:12:07 +01:00
Merge branch '2.x' into 3.x
# By Hugo Alliaume (5) and github-actions[bot] (1) * 2.x: Create E2E app & run it in CI Update versions to 2.29.2 Use Playwright to run E2E tests Rework test_package.sh to allow passing tail args to vitest Rename back vitest.config.unit.mjs to vitest.config.mjs Configure Vitest for unit and browser tests (use @puppeteer/browsers and webdriverio) # Conflicts: # pnpm-lock.yaml # src/LazyImage/assets/package.json # src/LazyImage/assets/test/unit/controller.test.ts # src/Swup/assets/package.json # src/Swup/assets/test/unit/controller.test.ts # src/TogglePassword/assets/package.json # src/TogglePassword/assets/test/unit/controller.test.ts # src/Typed/assets/package.json # src/Typed/assets/test/unit/controller.test.ts
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"description": "Integration of @hotwired/stimulus into Symfony",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"version": "2.29.1",
|
||||
"version": "2.29.2",
|
||||
"keywords": [
|
||||
"symfony-ux"
|
||||
],
|
||||
@@ -17,7 +17,8 @@
|
||||
"scripts": {
|
||||
"build": "tsx ../../../bin/build_package.ts .",
|
||||
"watch": "tsx ../../../bin/build_package.ts . --watch",
|
||||
"test": "../../../bin/test_package.sh .",
|
||||
"test": "pnpm run test:unit && pnpm run test:browser",
|
||||
"test:unit": "../../../bin/test_package.sh . --unit",
|
||||
"check": "biome check",
|
||||
"ci": "biome ci"
|
||||
},
|
||||
|
||||
@@ -3,8 +3,8 @@ import { waitFor } from '@testing-library/dom';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
// load from dist because the source TypeScript file points directly to controllers.js,
|
||||
// which does not actually exist in the source code
|
||||
import { loadControllers } from '../dist/loader';
|
||||
import type { EagerControllersCollection, LazyControllersCollection } from '../src/controllers';
|
||||
import { loadControllers } from '../../dist/loader';
|
||||
import type { EagerControllersCollection, LazyControllersCollection } from '../../src/controllers';
|
||||
|
||||
let isController1Initialized = false;
|
||||
let isController2Initialized = false;
|
||||
4
assets/vitest.config.mjs
Normal file
4
assets/vitest.config.mjs
Normal file
@@ -0,0 +1,4 @@
|
||||
import { mergeConfig } from 'vitest/config';
|
||||
import configShared from '../../../vitest.config.base.mjs';
|
||||
|
||||
export default mergeConfig(configShared, {});
|
||||
Reference in New Issue
Block a user