Skip to content

Commit 30c6d1d

Browse files
yuchenshiFeiyang1
andcommitted
Add Rules Unit Testing v2 skeleton for v9 release (#5352)
* Reset package for next major version. * Switch emulator script to node-fetch. * Migrate the other request call to fetch. * Update packages/rules-unit-testing/package.json Co-authored-by: Feiyang <[email protected]> * Create stale-ducks-live.md * Revert version change. Co-authored-by: Feiyang <[email protected]>
1 parent 1936dbb commit 30c6d1d

File tree

6 files changed

+52
-893
lines changed

6 files changed

+52
-893
lines changed

.changeset/stale-ducks-live.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/rules-unit-testing": major
3+
---
4+
5+
BREAKING: Implement Rules Unit Testing v2 with new design and APIs.

packages/rules-unit-testing/index.ts

+2-17
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2021 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -21,19 +21,4 @@
2121
* creating a dependency on @firebase/rules-unit-testing.
2222
*/
2323

24-
export {
25-
apps,
26-
assertFails,
27-
assertSucceeds,
28-
discoverEmulators,
29-
clearFirestoreData,
30-
database,
31-
firestore,
32-
initializeAdminApp,
33-
initializeTestApp,
34-
loadDatabaseRules,
35-
loadFirestoreRules,
36-
loadStorageRules,
37-
useEmulators,
38-
withFunctionTriggersDisabled
39-
} from './src/api';
24+
export const TODO = 'TODO';

packages/rules-unit-testing/package.json

+2-15
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
66
"main": "dist/index.cjs.js",
77
"engines": {
8-
"node": "^8.13.0 || >=10.10.0"
8+
"node": ">=10.10.0"
99
},
1010
"files": [
1111
"dist"
@@ -19,25 +19,12 @@
1919
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test"
2020
},
2121
"license": "Apache-2.0",
22-
"dependencies": {
23-
"firebase": "8.10.0",
24-
"@firebase/component": "0.5.6",
25-
"@firebase/logger": "0.2.6",
26-
"@firebase/util": "1.3.0",
27-
"request": "2.88.2"
28-
},
2922
"devDependencies": {
30-
"@google-cloud/firestore": "4.12.3",
31-
"@types/request": "2.48.5",
32-
"firebase-admin": "9.9.0",
33-
"firebase-tools": "9.14.0",
34-
"firebase-functions": "3.14.1",
3523
"rollup": "2.52.2",
3624
"rollup-plugin-typescript2": "0.30.0"
3725
},
3826
"peerDependencies": {
39-
"@google-cloud/firestore": "^4.2.0",
40-
"firebase-admin": "^9.7.0"
27+
"firebase": "^8.10.0"
4128
},
4229
"repository": {
4330
"directory": "packages/rules-unit-testing",

0 commit comments

Comments
 (0)