We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f231f commit 92a6258Copy full SHA for 92a6258
src/index.test.js
@@ -0,0 +1,27 @@
1
+import lighthousePlugin from './index.js';
2
+
3
+describe('lighthousePlugin plugin events', () => {
4
+ describe('onPostBuild', () => {
5
+ it('should return only the expected event function', async () => {
6
+ const events = lighthousePlugin();
7
+ expect(events).toEqual({
8
+ onPostBuild: expect.any(Function),
9
+ });
10
11
12
13
+ describe('onSuccess', () => {
14
+ beforeEach(() => {
15
+ process.env.RUN_ON_SUCCESS = 'true';
16
17
+ afterEach(() => {
18
+ delete process.env.RUN_ON_SUCCESS;
19
20
21
22
23
+ onSuccess: expect.any(Function),
24
25
26
27
+});
0 commit comments