File tree Expand file tree Collapse file tree 2 files changed +7
-18
lines changed
packages/rules-unit-testing/src/impl Expand file tree Collapse file tree 2 files changed +7
-18
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,13 @@ export class RulesTestEnvironmentImpl implements RulesTestEnvironment {
123
123
124
124
clearStorage ( ) : Promise < void > {
125
125
this . checkNotDestroyed ( ) ;
126
- return this . withSecurityRulesDisabled ( context => {
127
- return context . storage ( ) . ref ( ) . delete ( ) ;
126
+ return this . withSecurityRulesDisabled ( async context => {
127
+ const { items } = await context . storage ( ) . ref ( ) . listAll ( ) ;
128
+ await Promise . all (
129
+ items . map ( item => {
130
+ return item . delete ( ) ;
131
+ } )
132
+ ) ;
128
133
} ) ;
129
134
}
130
135
Original file line number Diff line number Diff line change @@ -5675,13 +5675,6 @@ concat-stream@^2.0.0:
5675
5675
readable-stream "^3.0.2"
5676
5676
typedarray "^0.0.6"
5677
5677
5678
- concat-with-sourcemaps@^1.0.0:
5679
- version "1.1.0"
5680
- resolved "https://registry.npmjs.org/concat-with-sourcemaps/-/concat-with-sourcemaps-1.1.0.tgz#d4ea93f05ae25790951b99e7b3b09e3908a4082e"
5681
- integrity sha512-4gEjHJFT9e+2W/77h/DS5SGUgwDaOwprX8L/gl5+3ixnzkVJJsZWDSelmN3Oilw3LNDZjZV0yqH1hLG3k6nghg==
5682
- dependencies:
5683
- source-map "^0.6.1"
5684
-
5685
5678
config-chain@^1.1.12:
5686
5679
version "1.1.13"
5687
5680
resolved "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4"
@@ -8742,15 +8735,6 @@ gulp-cli@^2.2.0:
8742
8735
v8flags "^3.2.0"
8743
8736
yargs "^7.1.0"
8744
8737
8745
-
8746
- version "2.6.1"
8747
- resolved "https://registry.npmjs.org/gulp-concat/-/gulp-concat-2.6.1.tgz#633d16c95d88504628ad02665663cee5a4793353"
8748
- integrity sha1-Yz0WyV2IUEYorQJmVmPO5aR5M1M=
8749
- dependencies:
8750
- concat-with-sourcemaps "^1.0.0"
8751
- through2 "^2.0.0"
8752
- vinyl "^2.0.0"
8753
-
8754
8738
8755
8739
version "7.0.0"
8756
8740
resolved "https://registry.npmjs.org/gulp-filter/-/gulp-filter-7.0.0.tgz#e0712f3e57b5d647f802a1880255cafb54abf158"
You can’t perform that action at this time.
0 commit comments