Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit beb140c

Browse files
committed
build: resolve tests utils for cypress
1 parent 1dae053 commit beb140c

File tree

10 files changed

+6
-5
lines changed

10 files changed

+6
-5
lines changed

cypress.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"componentFolder": "packages/",
3-
"pluginsFile": "./packages/tests/plugins.js",
3+
"pluginsFile": "./tests/plugins.js",
44
"testFiles": "**/*.cy.*",
5-
"supportFile": "packages/tests/support.tsx",
5+
"supportFile": "./tests/support.tsx",
66
"ignoreTestFiles": "**/*.snap",
77
"video": false,
88
"fixturesFolder": false,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"playground:build": "yarn install && yarn build && yarn bootstrap && NODE_ENV=production vite build playground --config ./vite.config.ts",
2424
"cy:open": "cypress open-ct",
2525
"cy:run": "cypress run-ct --quiet",
26-
"test:component": "cy:run",
26+
"test:component": "yarn cy:run",
2727
"test": "jest && yarn cy:run",
2828
"test:unit": "cross-env NODE_ENV=test jest --config jest.config.js",
2929
"lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix",
File renamed without changes.
File renamed without changes.
File renamed without changes.

packages/tests/plugins.js renamed to tests/plugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { startDevServer } = require('@cypress/vite-dev-server')
22

33
module.exports = (on, config) => {
44
on('dev-server:start', (options) => {
5-
const viteConfig = require('../../vite.config')
5+
const viteConfig = require('../vite.config')
66
viteConfig.esbuild = viteConfig.default.esbuild || {}
77
viteConfig.esbuild.jsxFactory = 'h'
88
viteConfig.esbuild.jsxFragment = 'Fragment'
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
55
"resolveJsonModule": true,
66
"lib": [ "esnext", "dom" ],
7-
"types": ["node", "jest", "vite/client", "vite-plugin-pages/client", "cypress", "./packages/tests"],
7+
"types": ["node", "jest", "vite/client", "vite-plugin-pages/client", "cypress"],
88
"declaration": true,
99
"allowJs": true,
1010
"sourceMap": true,
@@ -29,6 +29,7 @@
2929
"playground/**/*.tsx",
3030
"playground/**/*.vue",
3131
],
32+
"typeRoots": ["./tests"],
3233
"exclude": ["node_modules", "./@types", "dist"],
3334
"ts-node": {
3435
"compilerOptions": {

0 commit comments

Comments
 (0)