@popina/cli 5.1.2 → 5.1.3-20261009082944Z
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popina/cli",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.3-20261009082944Z",
|
|
4
4
|
"description": "Popina CLI",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "François Veauvy",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"zx": "^8.1.5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@pragma/
|
|
35
|
-
"@pragma/
|
|
34
|
+
"@pragma/config": "3.7.1",
|
|
35
|
+
"@pragma/tsconfig": "1.0.4"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "NODE_ENV=production tsup",
|
|
@@ -4,7 +4,7 @@ import fs from 'fs'
|
|
|
4
4
|
import { createRequire } from 'module'
|
|
5
5
|
import path from 'path'
|
|
6
6
|
|
|
7
|
-
const require = createRequire(
|
|
7
|
+
const require = createRequire(__filename)
|
|
8
8
|
|
|
9
9
|
export const generatorIcon = (plop: PlopTypes.NodePlopAPI) => {
|
|
10
10
|
const absoluteUiIconsPath = path.resolve(
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import '@testing-library/jest-dom'
|
|
2
|
-
|
|
3
|
-
import { render, screen } from '@testing-library/react'
|
|
4
|
-
import { expect, test } from 'vitest'
|
|
5
1
|
import React from 'react'
|
|
6
2
|
|
|
3
|
+
import { render } from '@test-render'
|
|
4
|
+
import { describe, expect, test } from 'vitest'
|
|
5
|
+
import { page } from 'vitest/browser'
|
|
6
|
+
|
|
7
7
|
import { {{pascalCase componentName}} } from './{{pascalCase componentName}}'
|
|
8
8
|
|
|
9
9
|
describe('{{pascalCase componentName}} Component', () => {
|
|
10
|
-
test('should render the {{pascalCase componentName}} Component', () => {
|
|
11
|
-
render(<{{pascalCase componentName}} name="change me" />)
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
test('should render the {{pascalCase componentName}} Component', async () => {
|
|
11
|
+
await render(<{{pascalCase componentName}} name="change me" />)
|
|
12
|
+
|
|
13
|
+
// `getByText` matches by substring — pass `{ exact: true }`, or prefer
|
|
14
|
+
// `getByRole(role, { name })` once this component renders a real role.
|
|
15
|
+
await expect
|
|
16
|
+
.element(page.getByText('change me', { exact: true }))
|
|
17
|
+
.toBeVisible()
|
|
14
18
|
})
|
|
15
19
|
})
|