|
| 1 | +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html |
| 2 | + |
| 3 | +exports[`examples > example 01-hello-world.mts > expected consistent console errors 1`] = `[]`; |
| 4 | + |
| 5 | +exports[`examples > example 01-hello-world.mts > expected consistent console logs 1`] = ` |
| 6 | +[ |
| 7 | + [ |
| 8 | + "[32mhello-world![39m", |
| 9 | + ], |
| 10 | +] |
| 11 | +`; |
| 12 | + |
| 13 | +exports[`examples > example 02-nested-boolean-logic.mts > expected consistent console errors 1`] = `[]`; |
| 14 | + |
| 15 | +exports[`examples > example 02-nested-boolean-logic.mts > expected consistent console logs 1`] = ` |
| 16 | +[ |
| 17 | + [ |
| 18 | + "[31mPlayer has fouled out![39m", |
| 19 | + ], |
| 20 | +] |
| 21 | +`; |
| 22 | + |
| 23 | +exports[`examples > example 03-dynamic-facts.mts > expected consistent console errors 1`] = `[]`; |
| 24 | + |
| 25 | +exports[`examples > example 03-dynamic-facts.mts > expected consistent console logs 1`] = ` |
| 26 | +[ |
| 27 | + [ |
| 28 | + "[2mloading account information for "lincoln"[22m", |
| 29 | + ], |
| 30 | + [ |
| 31 | + "lincoln is a current microsoft employee taking christmas day off", |
| 32 | + ], |
| 33 | +] |
| 34 | +`; |
| 35 | + |
| 36 | +exports[`examples > example 04-fact-dependency.mts > expected consistent console errors 1`] = `[]`; |
| 37 | + |
| 38 | +exports[`examples > example 04-fact-dependency.mts > expected consistent console logs 1`] = ` |
| 39 | +[ |
| 40 | + [ |
| 41 | + "-- FIRST RUN --", |
| 42 | + ], |
| 43 | + [ |
| 44 | + "[2mloading account information for "washington"[22m", |
| 45 | + ], |
| 46 | + [ |
| 47 | + "washington[32m DID [39mmeet conditions for the [4mfive-year-tenure[24m rule.", |
| 48 | + ], |
| 49 | + [ |
| 50 | + "washington[32m DID [39mmeet conditions for the [4mmicrosoft-terminated-employees[24m rule.", |
| 51 | + ], |
| 52 | + [ |
| 53 | + "-- SECOND RUN --", |
| 54 | + ], |
| 55 | + [ |
| 56 | + "[2mloading account information for "jefferson"[22m", |
| 57 | + ], |
| 58 | + [ |
| 59 | + "jefferson[32m DID [39mmeet conditions for the [4mfive-year-tenure[24m rule.", |
| 60 | + ], |
| 61 | + [ |
| 62 | + "jefferson did [31mNOT[39m meet conditions for the [4mmicrosoft-terminated-employees[24m rule.", |
| 63 | + ], |
| 64 | +] |
| 65 | +`; |
| 66 | + |
| 67 | +exports[`examples > example 05-optimizing-runtime-with-fact-priorities.mts > expected consistent console errors 1`] = `[]`; |
| 68 | + |
| 69 | +exports[`examples > example 05-optimizing-runtime-with-fact-priorities.mts > expected consistent console logs 1`] = ` |
| 70 | +[ |
| 71 | + [ |
| 72 | + "Checking the "date" fact...", |
| 73 | + ], |
| 74 | + [ |
| 75 | + "washington did [31mNOT[39m meet conditions for the [4mmicrosoft-employees[24m rule.", |
| 76 | + ], |
| 77 | +] |
| 78 | +`; |
| 79 | + |
| 80 | +exports[`examples > example 06-custom-operators.mts > expected consistent console errors 1`] = `[]`; |
| 81 | + |
| 82 | +exports[`examples > example 06-custom-operators.mts > expected consistent console logs 1`] = ` |
| 83 | +[ |
| 84 | + [ |
| 85 | + "bacon did [31mNOT[39m start with "a"", |
| 86 | + ], |
| 87 | + [ |
| 88 | + "bacon[32m DID [39mstart with "b"", |
| 89 | + ], |
| 90 | + [ |
| 91 | + "antelope[32m DID [39mstart with "a"", |
| 92 | + ], |
| 93 | + [ |
| 94 | + "antelope did [31mNOT[39m start with "b"", |
| 95 | + ], |
| 96 | +] |
| 97 | +`; |
| 98 | + |
| 99 | +exports[`examples > example 07-rule-chaining.mts > expected consistent console errors 1`] = `[]`; |
| 100 | + |
| 101 | +exports[`examples > example 07-rule-chaining.mts > expected consistent console logs 1`] = ` |
| 102 | +[ |
| 103 | + [ |
| 104 | + "[2mloading account information for "washington"[22m", |
| 105 | + ], |
| 106 | + [ |
| 107 | + "washington(microsoft) [32mDID[39m meet conditions for the [4mdrinks-screwdrivers[24m rule.", |
| 108 | + ], |
| 109 | + [ |
| 110 | + "washington(microsoft) [32mDID[39m meet conditions for the [4minvite-to-screwdriver-social[24m rule.", |
| 111 | + ], |
| 112 | + [ |
| 113 | + "washington [32mIS[39m a screwdriver aficionado", |
| 114 | + ], |
| 115 | + [ |
| 116 | + "jefferson did [31mNOT[39m meet conditions for the [4mdrinks-screwdrivers[24m rule.", |
| 117 | + ], |
| 118 | + [ |
| 119 | + "jefferson did [31mNOT[39m meet conditions for the [4minvite-to-screwdriver-social[24m rule.", |
| 120 | + ], |
| 121 | + [ |
| 122 | + "jefferson [31mIS NOT[39m a screwdriver aficionado", |
| 123 | + ], |
| 124 | +] |
| 125 | +`; |
| 126 | + |
| 127 | +exports[`examples > example 08-fact-comparison.mts > expected consistent console errors 1`] = `[]`; |
| 128 | + |
| 129 | +exports[`examples > example 08-fact-comparison.mts > expected consistent console logs 1`] = ` |
| 130 | +[ |
| 131 | + [ |
| 132 | + "washington[32m DID [39mmeet conditions for the [4mcustomer-can-afford-gift-card[24m rule.", |
| 133 | + ], |
| 134 | + [ |
| 135 | + "jefferson did [31mNOT[39m meet conditions for the [4mcustomer-can-afford-gift-card[24m rule.", |
| 136 | + ], |
| 137 | +] |
| 138 | +`; |
| 139 | + |
| 140 | +exports[`examples > example 09-rule-results.mts > expected consistent console errors 1`] = `[]`; |
| 141 | + |
| 142 | +exports[`examples > example 09-rule-results.mts > expected consistent console logs 1`] = ` |
| 143 | +[ |
| 144 | + [ |
| 145 | + "[31m[1mjoe[22m failed Athlete GPA Rule - was not an athlete[39m", |
| 146 | + ], |
| 147 | + [ |
| 148 | + "[32m[1mlarry[22m succeeded Athlete GPA Rule! Student made the athletics honor-roll[39m", |
| 149 | + ], |
| 150 | + [ |
| 151 | + "[31m[1mjane[22m failed Athlete GPA Rule - was not an athlete and GPA of 3.1 was too low[39m", |
| 152 | + ], |
| 153 | + [ |
| 154 | + "[32m[1mjanet[22m succeeded Athlete GPA Rule! Student made the athletics honor-roll[39m", |
| 155 | + ], |
| 156 | + [ |
| 157 | + "[31m[1msarah[22m failed Athlete GPA Rule - GPA of 1.1 was too low[39m", |
| 158 | + ], |
| 159 | +] |
| 160 | +`; |
| 161 | + |
| 162 | +exports[`examples > example 10-condition-sharing.mts > expected consistent console errors 1`] = `[]`; |
| 163 | + |
| 164 | +exports[`examples > example 10-condition-sharing.mts > expected consistent console logs 1`] = ` |
| 165 | +[ |
| 166 | + [ |
| 167 | + "washington[32mDID[39m meet conditions for the [4minvite-to-screwdriver-social[24m rule.", |
| 168 | + ], |
| 169 | + [ |
| 170 | + "washington did [31mNOT[39m meet conditions for the [4minvite-to-other-social[24m rule.", |
| 171 | + ], |
| 172 | + [ |
| 173 | + "jefferson did [31mNOT[39m meet conditions for the [4minvite-to-screwdriver-social[24m rule.", |
| 174 | + ], |
| 175 | + [ |
| 176 | + "jefferson[32mDID[39m meet conditions for the [4minvite-to-other-social[24m rule.", |
| 177 | + ], |
| 178 | +] |
| 179 | +`; |
| 180 | + |
| 181 | +exports[`examples > example 11-using-facts-in-events.mts > expected consistent console errors 1`] = `[]`; |
| 182 | + |
| 183 | +exports[`examples > example 11-using-facts-in-events.mts > expected consistent console logs 1`] = `[]`; |
| 184 | + |
| 185 | +exports[`examples > example 12-using-custom-almanac.mts > expected consistent console errors 1`] = `[]`; |
| 186 | + |
| 187 | +exports[`examples > example 12-using-custom-almanac.mts > expected consistent console logs 1`] = ` |
| 188 | +[ |
| 189 | + [ |
| 190 | + "HIGH SCORE |
| 191 | +DOG - 968", |
| 192 | + ], |
| 193 | + [ |
| 194 | + " |
| 195 | +", |
| 196 | + ], |
| 197 | + [ |
| 198 | + "HIGH SCORE |
| 199 | +AAA - 1000", |
| 200 | + ], |
| 201 | + [ |
| 202 | + "Bob is 19 years old and [31mis not[39m Over 21(ish)", |
| 203 | + ], |
| 204 | + [ |
| 205 | + "Alice is 21 years old and [32mis[39m Over 21(ish)", |
| 206 | + ], |
| 207 | + [ |
| 208 | + "Chad is 20 years old and [32mis[39m Over 21(ish)", |
| 209 | + ], |
| 210 | +] |
| 211 | +`; |
| 212 | + |
| 213 | +exports[`examples > example 13-using-operator-decorators.mts > expected consistent console errors 1`] = `[]`; |
| 214 | + |
| 215 | +exports[`examples > example 13-using-operator-decorators.mts > expected consistent console logs 1`] = ` |
| 216 | +[ |
| 217 | + [ |
| 218 | + "dev, prod[32m WERE[39m all valid tags", |
| 219 | + ], |
| 220 | + [ |
| 221 | + "dev, deleted[31m WERE NOT[39m all valid tags", |
| 222 | + ], |
| 223 | + [ |
| 224 | + "dev, PROD[31m WERE NOT[39m all valid tags", |
| 225 | + ], |
| 226 | + [ |
| 227 | + "dev, PROD[32m WERE[39m all valid tags (case insensitive)", |
| 228 | + ], |
| 229 | +] |
| 230 | +`; |
0 commit comments