Skip to content

Commit

Permalink
Add Rules Unit Testing v2 skeleton for v9 release (#5352)
Browse files Browse the repository at this point in the history
* 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 <feiyangc@google.com>

* Create stale-ducks-live.md

* Revert version change.

Co-authored-by: Feiyang <feiyangc@google.com>
  • Loading branch information
yuchenshi and Feiyang1 committed Aug 24, 2021
1 parent 1936dbb commit 30c6d1d
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 893 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-ducks-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@firebase/rules-unit-testing": major
---

BREAKING: Implement Rules Unit Testing v2 with new design and APIs.
19 changes: 2 additions & 17 deletions packages/rules-unit-testing/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @license
* Copyright 2017 Google LLC
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,19 +21,4 @@
* creating a dependency on @firebase/rules-unit-testing.
*/

export {
apps,
assertFails,
assertSucceeds,
discoverEmulators,
clearFirestoreData,
database,
firestore,
initializeAdminApp,
initializeTestApp,
loadDatabaseRules,
loadFirestoreRules,
loadStorageRules,
useEmulators,
withFunctionTriggersDisabled
} from './src/api';
export const TODO = 'TODO';
17 changes: 2 additions & 15 deletions packages/rules-unit-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
"engines": {
"node": "^8.13.0 || >=10.10.0"
"node": ">=10.10.0"
},
"files": [
"dist"
Expand All @@ -19,25 +19,12 @@
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test"
},
"license": "Apache-2.0",
"dependencies": {
"firebase": "8.10.0",
"@firebase/component": "0.5.6",
"@firebase/logger": "0.2.6",
"@firebase/util": "1.3.0",
"request": "2.88.2"
},
"devDependencies": {
"@google-cloud/firestore": "4.12.3",
"@types/request": "2.48.5",
"firebase-admin": "9.9.0",
"firebase-tools": "9.14.0",
"firebase-functions": "3.14.1",
"rollup": "2.52.2",
"rollup-plugin-typescript2": "0.30.0"
},
"peerDependencies": {
"@google-cloud/firestore": "^4.2.0",
"firebase-admin": "^9.7.0"
"firebase": "^8.10.0"
},
"repository": {
"directory": "packages/rules-unit-testing",
Expand Down
Loading

0 comments on commit 30c6d1d

Please sign in to comment.