@thinkwise/testwise 0.1.65 → 0.1.66
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/README.md +39 -0
- package/components/grid/Grid.ts +23 -0
- package/components/grid/GridObjects.ts +3 -1
- package/config.json +9 -9
- package/dist/components/grid/Grid.d.ts +19 -0
- package/dist/components/grid/Grid.js +21 -0
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/GridObjects.d.ts +1 -0
- package/dist/components/grid/GridObjects.js +2 -1
- package/dist/components/grid/GridObjects.js.map +1 -1
- package/dist/package-lock.json +223 -254
- package/dist/package.json +5 -6
- package/package.json +58 -58
- package/scripts/Testwise.template.json +24 -24
- package/scripts/main.js +11 -11
- package/scripts/setup.js +34 -34
- package/scripts/tsconfig.template.json +11 -11
- package/tsconfig.json +19 -19
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkwise/testwise",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.65",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
|
12
12
|
"format:fix": "run-s \"lint --fix\" && biome check --fix --unsafe",
|
|
13
|
-
"format:check": "run-s \"lint \" && biome check"
|
|
14
|
-
"postinstall": "node scripts/main.js install"
|
|
13
|
+
"format:check": "run-s \"lint \" && biome check"
|
|
15
14
|
},
|
|
16
15
|
"keywords": [],
|
|
17
16
|
"author": "",
|
|
@@ -23,11 +22,11 @@
|
|
|
23
22
|
"chalk": "^5.4.1",
|
|
24
23
|
"csv-parse": "^5.6.0",
|
|
25
24
|
"dotenv": "^17.2.2",
|
|
26
|
-
"prompts": "^2.4.2"
|
|
27
|
-
"ts-node": "^10.9.2"
|
|
25
|
+
"prompts": "^2.4.2"
|
|
28
26
|
},
|
|
29
27
|
"peerDependencies": {
|
|
30
|
-
"@playwright/test": "^1.52.0"
|
|
28
|
+
"@playwright/test": "^1.52.0",
|
|
29
|
+
"typescript": "^5.8.3"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
32
|
"@biomejs/biome": "^2.1.2",
|
package/package.json
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thinkwise/testwise",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
"testwise": "./scripts/main.js",
|
|
8
|
-
"testwise-credentials": "./promptCredentials.js"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
|
12
|
-
"format:fix": "run-s \"lint --fix\" && biome check --fix --unsafe",
|
|
13
|
-
"format:check": "run-s \"lint \" && biome check"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [],
|
|
16
|
-
"author": "",
|
|
17
|
-
"license": "ISC",
|
|
18
|
-
"description": "",
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@types/node": "^22.15.29",
|
|
21
|
-
"axios": "^1.9.0",
|
|
22
|
-
"chalk": "^5.4.1",
|
|
23
|
-
"csv-parse": "^5.6.0",
|
|
24
|
-
"dotenv": "^17.2.2",
|
|
25
|
-
"prompts": "^2.4.2"
|
|
26
|
-
},
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"@playwright/test": "^1.52.0",
|
|
29
|
-
"typescript": "^5.8.3"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@biomejs/biome": "^2.1.2",
|
|
33
|
-
"@eslint/js": "^9.28.0",
|
|
34
|
-
"@playwright/test": "^1.52.0",
|
|
35
|
-
"eslint": "^9.28.0",
|
|
36
|
-
"eslint-plugin-playwright": "^2.2.0",
|
|
37
|
-
"npm-run-all": "^4.1.5",
|
|
38
|
-
"typescript-eslint": "^8.34.0"
|
|
39
|
-
},
|
|
40
|
-
"files": [
|
|
41
|
-
"dist/",
|
|
42
|
-
"scripts/",
|
|
43
|
-
"components/",
|
|
44
|
-
"services/",
|
|
45
|
-
"controls/",
|
|
46
|
-
"helpers/",
|
|
47
|
-
"page-extensions/",
|
|
48
|
-
"page-overrides/",
|
|
49
|
-
"index.ts",
|
|
50
|
-
"Testwise.ts",
|
|
51
|
-
"types/",
|
|
52
|
-
"enums/",
|
|
53
|
-
"tsconfig.json",
|
|
54
|
-
"example-code/",
|
|
55
|
-
"interfaces/",
|
|
56
|
-
"**/config.json"
|
|
57
|
-
]
|
|
58
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thinkwise/testwise",
|
|
3
|
+
"version": "0.1.66",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"testwise": "./scripts/main.js",
|
|
8
|
+
"testwise-credentials": "./promptCredentials.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint ./ --cache --ignore-pattern .gitignore",
|
|
12
|
+
"format:fix": "run-s \"lint --fix\" && biome check --fix --unsafe",
|
|
13
|
+
"format:check": "run-s \"lint \" && biome check"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [],
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"description": "",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@types/node": "^22.15.29",
|
|
21
|
+
"axios": "^1.9.0",
|
|
22
|
+
"chalk": "^5.4.1",
|
|
23
|
+
"csv-parse": "^5.6.0",
|
|
24
|
+
"dotenv": "^17.2.2",
|
|
25
|
+
"prompts": "^2.4.2"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@playwright/test": "^1.52.0",
|
|
29
|
+
"typescript": "^5.8.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@biomejs/biome": "^2.1.2",
|
|
33
|
+
"@eslint/js": "^9.28.0",
|
|
34
|
+
"@playwright/test": "^1.52.0",
|
|
35
|
+
"eslint": "^9.28.0",
|
|
36
|
+
"eslint-plugin-playwright": "^2.2.0",
|
|
37
|
+
"npm-run-all": "^4.1.5",
|
|
38
|
+
"typescript-eslint": "^8.34.0"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist/",
|
|
42
|
+
"scripts/",
|
|
43
|
+
"components/",
|
|
44
|
+
"services/",
|
|
45
|
+
"controls/",
|
|
46
|
+
"helpers/",
|
|
47
|
+
"page-extensions/",
|
|
48
|
+
"page-overrides/",
|
|
49
|
+
"index.ts",
|
|
50
|
+
"Testwise.ts",
|
|
51
|
+
"types/",
|
|
52
|
+
"enums/",
|
|
53
|
+
"tsconfig.json",
|
|
54
|
+
"example-code/",
|
|
55
|
+
"interfaces/",
|
|
56
|
+
"**/config.json"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"environmentSettings" :{
|
|
3
|
-
"baseUrl" : "https://develop.example.app",
|
|
4
|
-
"serviceUrl" : "https://develop.example.app/service",
|
|
5
|
-
"metaEndpoint" : "iam"
|
|
6
|
-
},
|
|
7
|
-
"featureSettings" :{
|
|
8
|
-
"logger" : {
|
|
9
|
-
"logDir" : "logs",
|
|
10
|
-
"logLevel" : "info",
|
|
11
|
-
"applyLogLevelToConsoleOutput" : false,
|
|
12
|
-
"logByDay" : true,
|
|
13
|
-
"bufferSizeLimit" : -1
|
|
14
|
-
},
|
|
15
|
-
"InflightRequests" : {
|
|
16
|
-
"waitForRequestsToComplete" : true,
|
|
17
|
-
"waitTimeout" : 5000,
|
|
18
|
-
"continueOnError" : true,
|
|
19
|
-
"paths" : ["/stage", "/layout()", "/context()"]
|
|
20
|
-
},
|
|
21
|
-
"other" : {
|
|
22
|
-
"loginTimeout" : 30000
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"environmentSettings" :{
|
|
3
|
+
"baseUrl" : "https://develop.example.app",
|
|
4
|
+
"serviceUrl" : "https://develop.example.app/service",
|
|
5
|
+
"metaEndpoint" : "iam"
|
|
6
|
+
},
|
|
7
|
+
"featureSettings" :{
|
|
8
|
+
"logger" : {
|
|
9
|
+
"logDir" : "logs",
|
|
10
|
+
"logLevel" : "info",
|
|
11
|
+
"applyLogLevelToConsoleOutput" : false,
|
|
12
|
+
"logByDay" : true,
|
|
13
|
+
"bufferSizeLimit" : -1
|
|
14
|
+
},
|
|
15
|
+
"InflightRequests" : {
|
|
16
|
+
"waitForRequestsToComplete" : true,
|
|
17
|
+
"waitTimeout" : 5000,
|
|
18
|
+
"continueOnError" : true,
|
|
19
|
+
"paths" : ["/stage", "/layout()", "/context()"]
|
|
20
|
+
},
|
|
21
|
+
"other" : {
|
|
22
|
+
"loginTimeout" : 30000
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
}
|
package/scripts/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import process from 'node:process';
|
|
3
|
-
import { setup } from './setup.js';
|
|
4
|
-
|
|
5
|
-
if (process.argv[2] === 'install') {
|
|
6
|
-
setup();
|
|
7
|
-
} else if (process.argv[2] === 'sync') {
|
|
8
|
-
console.log('This feature is coming soon!');
|
|
9
|
-
} else {
|
|
10
|
-
console.warn('Command unknown. Use "install" or "sync".');
|
|
11
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
import { setup } from './setup.js';
|
|
4
|
+
|
|
5
|
+
if (process.argv[2] === 'install') {
|
|
6
|
+
setup();
|
|
7
|
+
} else if (process.argv[2] === 'sync') {
|
|
8
|
+
console.log('This feature is coming soon!');
|
|
9
|
+
} else {
|
|
10
|
+
console.warn('Command unknown. Use "install" or "sync".');
|
|
11
|
+
}
|
package/scripts/setup.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
import fs from 'node:fs';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import process from 'node:process';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
|
|
7
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
-
const __dirname = path.dirname(__filename);
|
|
9
|
-
|
|
10
|
-
export function setup() {
|
|
11
|
-
try {
|
|
12
|
-
const testwiseConfigFile = path.resolve(process.cwd(), 'Testwise.json');
|
|
13
|
-
const testwiseConfigTemplateFile = path.join(__dirname, 'Testwise.template.json');
|
|
14
|
-
const tsConfigFile = path.resolve(process.cwd(), 'tsconfig.json');
|
|
15
|
-
const tsConfigTemplateFile = path.join(__dirname, 'tsconfig.template.json');
|
|
16
|
-
|
|
17
|
-
if (!fs.existsSync(testwiseConfigFile)) {
|
|
18
|
-
fs.copyFileSync(testwiseConfigTemplateFile, testwiseConfigFile);
|
|
19
|
-
console.info('Testwise.json config file created.');
|
|
20
|
-
} else {
|
|
21
|
-
console.info('Testwise.json already exists, skipping creation.');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
if (!fs.existsSync(tsConfigFile)) {
|
|
25
|
-
fs.copyFileSync(tsConfigTemplateFile, tsConfigFile);
|
|
26
|
-
console.info('tsconfig.json config file created.');
|
|
27
|
-
} else {
|
|
28
|
-
console.info('tsconfig.json already exists, skipping creation.');
|
|
29
|
-
}
|
|
30
|
-
} catch (error) {
|
|
31
|
-
console.error('Error during installation:', error.message);
|
|
32
|
-
process.exit(1); // Exit with an error code if something goes wrong
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import process from 'node:process';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
|
|
10
|
+
export function setup() {
|
|
11
|
+
try {
|
|
12
|
+
const testwiseConfigFile = path.resolve(process.cwd(), 'Testwise.json');
|
|
13
|
+
const testwiseConfigTemplateFile = path.join(__dirname, 'Testwise.template.json');
|
|
14
|
+
const tsConfigFile = path.resolve(process.cwd(), 'tsconfig.json');
|
|
15
|
+
const tsConfigTemplateFile = path.join(__dirname, 'tsconfig.template.json');
|
|
16
|
+
|
|
17
|
+
if (!fs.existsSync(testwiseConfigFile)) {
|
|
18
|
+
fs.copyFileSync(testwiseConfigTemplateFile, testwiseConfigFile);
|
|
19
|
+
console.info('Testwise.json config file created.');
|
|
20
|
+
} else {
|
|
21
|
+
console.info('Testwise.json already exists, skipping creation.');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (!fs.existsSync(tsConfigFile)) {
|
|
25
|
+
fs.copyFileSync(tsConfigTemplateFile, tsConfigFile);
|
|
26
|
+
console.info('tsconfig.json config file created.');
|
|
27
|
+
} else {
|
|
28
|
+
console.info('tsconfig.json already exists, skipping creation.');
|
|
29
|
+
}
|
|
30
|
+
} catch (error) {
|
|
31
|
+
console.error('Error during installation:', error.message);
|
|
32
|
+
process.exit(1); // Exit with an error code if something goes wrong
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2016",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"typeRoots": ["./node_modules/@types", "./types"],
|
|
7
|
-
"resolveJsonModule": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2016",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"typeRoots": ["./node_modules/@types", "./types"],
|
|
7
|
+
"resolveJsonModule": true,
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"skipLibCheck": true
|
|
11
|
+
}
|
|
12
12
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "nodenext",
|
|
5
|
-
"moduleResolution": "nodenext",
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"allowSyntheticDefaultImports": true,
|
|
8
|
-
"outDir": "dist",
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"skipLibCheck": true,
|
|
13
|
-
"strict": true
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"**/*.ts",
|
|
17
|
-
"**/*.json"
|
|
18
|
-
],
|
|
19
|
-
"exclude": ["dist", "node_modules"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "nodenext",
|
|
5
|
+
"moduleResolution": "nodenext",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"allowSyntheticDefaultImports": true,
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"strict": true
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"**/*.ts",
|
|
17
|
+
"**/*.json"
|
|
18
|
+
],
|
|
19
|
+
"exclude": ["dist", "node_modules"]
|
|
20
20
|
}
|