@baselift/blocks-testing 0.0.1
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 +177 -0
- package/dist/cjs/error_utils.js +56 -0
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/inject_mock_airtable_interface.js +6 -0
- package/dist/cjs/mock_airtable_interface.js +851 -0
- package/dist/cjs/private_utils.js +78 -0
- package/dist/cjs/test_driver.js +658 -0
- package/dist/cjs/test_mutations.js +37 -0
- package/dist/cjs/vacant_airtable_interface.js +367 -0
- package/dist/types/src/error_utils.d.ts +11 -0
- package/dist/types/src/error_utils.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -0
- package/dist/types/src/inject_mock_airtable_interface.d.ts +2 -0
- package/dist/types/src/inject_mock_airtable_interface.d.ts.map +1 -0
- package/dist/types/src/mock_airtable_interface.d.ts +237 -0
- package/dist/types/src/mock_airtable_interface.d.ts.map +1 -0
- package/dist/types/src/private_utils.d.ts +33 -0
- package/dist/types/src/private_utils.d.ts.map +1 -0
- package/dist/types/src/test_driver.d.ts +450 -0
- package/dist/types/src/test_driver.d.ts.map +1 -0
- package/dist/types/src/test_mutations.d.ts +43 -0
- package/dist/types/src/test_mutations.d.ts.map +1 -0
- package/dist/types/src/vacant_airtable_interface.d.ts +2 -0
- package/dist/types/src/vacant_airtable_interface.d.ts.map +1 -0
- package/dist/types/test/index_compatible.test.d.ts +8 -0
- package/dist/types/test/index_compatible.test.d.ts.map +1 -0
- package/dist/types/test/index_incompatible.test.d.ts +2 -0
- package/dist/types/test/index_incompatible.test.d.ts.map +1 -0
- package/dist/types/test/mock_airtable_interface.test.d.ts +2 -0
- package/dist/types/test/mock_airtable_interface.test.d.ts.map +1 -0
- package/dist/types/test/mutation_types.test.d.ts +2 -0
- package/dist/types/test/mutation_types.test.d.ts.map +1 -0
- package/dist/types/test/package_json.test.d.ts +2 -0
- package/dist/types/test/package_json.test.d.ts.map +1 -0
- package/dist/types/test/test_driver.test.d.ts +2 -0
- package/dist/types/test/test_driver.test.d.ts.map +1 -0
- package/dist/types/test/untestable_bindings.test.d.ts +2 -0
- package/dist/types/test/untestable_bindings.test.d.ts.map +1 -0
- package/package.json +120 -0
- package/types/globals.d.ts +6 -0
package/package.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@baselift/blocks-testing",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Airtable Blocks Testing Library",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Airtable/blocks.git"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://airtable.com/developers/blocks",
|
|
10
|
+
"main": "dist/cjs/index.js",
|
|
11
|
+
"types": "dist/types/src/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"types"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"ci": "echo '--- blocks-testing' && (cd ../sdk && yarn build) && yarn run build && yarn run test:coverage && ./scripts/check_integration_with_sdk.sh",
|
|
18
|
+
"version": "changelog-publish --github-repo-url='https://github.com/airtable/blocks-testing' --git-tag-prefix='@baselift/blocks-testing@' && git add CHANGELOG.md",
|
|
19
|
+
"release": "npm_config_registry=https://registry.npmjs.org/ release-it",
|
|
20
|
+
"types": "tsc",
|
|
21
|
+
"lint": "eslint --report-unused-disable-directives --ext .js,.ts,.tsx src test",
|
|
22
|
+
"jest": "node --unhandled-rejections=strict ./node_modules/.bin/jest",
|
|
23
|
+
"jest:watch": "jest --watch",
|
|
24
|
+
"test": "yarn run jest",
|
|
25
|
+
"test:coverage": "yarn run test --coverage",
|
|
26
|
+
"build:clean": "rm -rf dist",
|
|
27
|
+
"build:babel": "babel src --out-dir dist/cjs --extensions=.js,.ts,.tsx --ignore='**/*.d.ts'",
|
|
28
|
+
"watch:babel": "yarn run build:babel --watch --source-maps inline",
|
|
29
|
+
"build:types": "tsc --outDir dist/types --declaration --declarationMap --noEmit false --allowJs false --checkJs false --emitDeclarationOnly --stripInternal",
|
|
30
|
+
"watch:types": "yarn run build:types --watch",
|
|
31
|
+
"build": "yarn run build:clean && concurrently yarn:build:babel yarn:build:types",
|
|
32
|
+
"watch": "yarn run build:clean && concurrently yarn:watch:babel yarn:watch:types"
|
|
33
|
+
},
|
|
34
|
+
"author": "",
|
|
35
|
+
"license": "UNLICENSED",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@baselift/blocks": "^1.2.2",
|
|
38
|
+
"@babel/cli": "^7.7.5",
|
|
39
|
+
"@babel/core": "^7.7.5",
|
|
40
|
+
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
|
41
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.7.4",
|
|
42
|
+
"@babel/plugin-proposal-optional-chaining": "^7.7.5",
|
|
43
|
+
"@babel/plugin-transform-runtime": "^7.7.6",
|
|
44
|
+
"@babel/preset-env": "^7.7.6",
|
|
45
|
+
"@babel/preset-react": "^7.7.4",
|
|
46
|
+
"@babel/preset-typescript": "^7.7.4",
|
|
47
|
+
"@types/jest": "^24.0.23",
|
|
48
|
+
"@types/node": "^14.14.23",
|
|
49
|
+
"@types/react-dom": "^18.3.7",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
|
51
|
+
"@typescript-eslint/parser": "^2.10.0",
|
|
52
|
+
"babel-eslint": "^11.0.0-beta.0",
|
|
53
|
+
"babel-loader": "^8.0.6",
|
|
54
|
+
"babel-plugin-transform-define": "^2.0.0",
|
|
55
|
+
"concurrently": "^5.0.0",
|
|
56
|
+
"eslint": "6.7.2",
|
|
57
|
+
"eslint-plugin-import": "^2.19.1",
|
|
58
|
+
"eslint-plugin-jsdoc": "^15.12.0",
|
|
59
|
+
"eslint-plugin-react": "^7.17.0",
|
|
60
|
+
"eslint-plugin-react-hooks": "^2.3.0",
|
|
61
|
+
"jest": "^24.9.0",
|
|
62
|
+
"prettier": "^1.19.1",
|
|
63
|
+
"typedoc": "^0.15.4",
|
|
64
|
+
"typedoc-plugin-no-inherit": "^1.1.10",
|
|
65
|
+
"typescript": "^3.7.3"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@airtable/eslint-plugin-blocks": "^1.0.2",
|
|
69
|
+
"@babel/runtime": "^7.7.6",
|
|
70
|
+
"@types/lodash.omit": "^4.5.6",
|
|
71
|
+
"@types/prettier": "^1.19.0",
|
|
72
|
+
"@types/prop-types": "^15.7.3",
|
|
73
|
+
"@types/react": "^18.3.18",
|
|
74
|
+
"@types/semver": "^7.3.4",
|
|
75
|
+
"@types/styled-system": "^5.1.4",
|
|
76
|
+
"core-js": "^3.4.8",
|
|
77
|
+
"semver": "^7.3.4"
|
|
78
|
+
},
|
|
79
|
+
"airtable_comments": {
|
|
80
|
+
"@airtabel/blocks": [
|
|
81
|
+
"This version specifier should be as permissive as possible. It",
|
|
82
|
+
"should match the oldest version of the Blocks SDK with which the",
|
|
83
|
+
"testing library is known to function. It should also match the",
|
|
84
|
+
"specifier listed in this file's 'devDependencies'."
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"peerDependencies": {
|
|
88
|
+
"react": "^18.2.0",
|
|
89
|
+
"react-dom": "^18.2.0",
|
|
90
|
+
"@baselift/blocks": "^1.2.2"
|
|
91
|
+
},
|
|
92
|
+
"jest": {
|
|
93
|
+
"setupFiles": [],
|
|
94
|
+
"collectCoverageFrom": [
|
|
95
|
+
"src/**/*"
|
|
96
|
+
],
|
|
97
|
+
"coverageThreshold": {
|
|
98
|
+
"global": {
|
|
99
|
+
"branches": 100,
|
|
100
|
+
"functions": 100,
|
|
101
|
+
"lines": 100,
|
|
102
|
+
"statements": 100
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"release-it": {
|
|
107
|
+
"git": {
|
|
108
|
+
"tagName": "@baselift/blocks-testing@${version}",
|
|
109
|
+
"commitMessage": "Release @baselift/blocks-testing@${version}"
|
|
110
|
+
},
|
|
111
|
+
"hooks": {
|
|
112
|
+
"before:init": "../../bin/check-repo-for-release && yarn build && yarn test",
|
|
113
|
+
"after:bump": "yarn build",
|
|
114
|
+
"after:release": "../../tools/git-mirror/bin/git-mirror sync @baselift/blocks-testing@${version}"
|
|
115
|
+
},
|
|
116
|
+
"npm": {
|
|
117
|
+
"access": "public"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|