text stringlengths 3 1.39M | id stringlengths 16 173 | metadata dict | __index_level_0__ int64 0 363 |
|---|---|---|---|
{
"recommendations": ["esbenp.prettier-vscode"]
}
| cypress-commands/.vscode/extentions.json/0 | {
"file_path": "cypress-commands/.vscode/extentions.json",
"repo_id": "cypress-commands",
"token_count": 26
} | 0 |
import whitespace from '../../../src/utils/whitespace';
const _ = Cypress._;
describe('Whitespace options for commands yielding strings', function () {
it('returns a function', function () {
expect(_.isFunction(whitespace('mode'))).to.be.true;
});
context('mode = `simplify`', function () {
beforeEach(function () {
this.ws = whitespace('simplify');
});
it('simplifies whitespace in the middle of the string', function () {
expect(this.ws('Lorum ipsum\n\xa0dolor\tsit \r \n\tamet')).to.equal(
'Lorum ipsum dolor sit amet'
);
});
it('removes whitespace at the ends of the string', function () {
expect(this.ws(' Lorum ipsum dolor sit amet\n')).to.equal('Lorum ipsum dolor sit amet');
expect(this.ws('\tLorum ipsum dolor sit amet\r')).to.equal(
'Lorum ipsum dolor sit amet'
);
expect(this.ws('\t \r \n\xa0 Lorum ipsum dolor sit amet')).to.equal(
'Lorum ipsum dolor sit amet'
);
});
it('removes zero-width whitespace', function () {
expect(this.ws('Lorum\u200Bipsum dol\uFEFFor sit amet')).to.equal(
'Lorumipsum dolor sit amet'
);
expect(this.ws('Lorum\u200Cips\uFEFFum dolor sit amet')).to.equal(
'Lorumipsum dolor sit amet'
);
expect(this.ws('Lorum\u200Dipsum dolor sit am\uFEFFet')).to.equal(
'Lorumipsum dolor sit amet'
);
});
});
context('mode = `keep-newline`', function () {
beforeEach(function () {
this.ws = whitespace('keep-newline');
});
it('simplifies non-newline whitespace in the middle of the string', function () {
expect(this.ws('Lorum ipsum dolor\tsit \r \tamet')).to.equal(
'Lorum ipsum dolor sit amet'
);
});
it('keeps newline characters in the middle of a string', function () {
expect(this.ws('Lorum \n ipsum\xa0 dolor\tsit \r \n\tamet')).to.equal(
'Lorum\nipsum dolor sit\namet'
);
});
it('removes non-newline whitespace at the ends of the string', function () {
expect(this.ws(' Lorum ipsum dolor sit amet')).to.equal('Lorum ipsum dolor sit amet');
expect(this.ws('\tLorum ipsum dolor sit amet\r')).to.equal(
'Lorum ipsum dolor sit amet'
);
expect(this.ws('\t\xa0 \r Lorum ipsum dolor sit amet')).to.equal(
'Lorum ipsum dolor sit amet'
);
});
it('keeps newline characters at the ends of a string', function () {
expect(this.ws(' \n Lorum ipsum dolor sit amet\t\n')).to.equal(
'\nLorum ipsum dolor sit amet\n'
);
expect(this.ws('\nLorum ipsum dolor sit amet')).to.equal(
'\nLorum ipsum dolor sit amet'
);
});
it('removes zero-width whitespace', function () {
expect(this.ws('Lorum\u200Bipsum dol\uFEFFor sit amet')).to.equal(
'Lorumipsum dolor sit amet'
);
expect(this.ws('Lorum\u200Cips\uFEFFum dolor sit amet')).to.equal(
'Lorumipsum dolor sit amet'
);
expect(this.ws('Lorum\u200Dipsum dolor sit am\uFEFFet')).to.equal(
'Lorumipsum dolor sit amet'
);
});
});
context('mode = `keep`', function () {
beforeEach(function () {
this.ws = whitespace('keep');
});
it('does not change the string at all', function () {
const string = 'Lorum \t\r\xa0 ipsum dolor \n\nsit amet\n\r';
expect(this.ws(string)).to.equal(string);
});
});
});
| cypress-commands/cypress/e2e/utils/whitespace.cy.js/0 | {
"file_path": "cypress-commands/cypress/e2e/utils/whitespace.cy.js",
"repo_id": "cypress-commands",
"token_count": 1999
} | 1 |
const _ = Cypress._;
const $ = Cypress.$;
import isJquery from './utils/isJquery';
import OptionValidator from './utils/optionValidator';
const validator = new OptionValidator('then');
/**
* Enables you to work with the subject yielded from the previous command.
*
* @example
* cy.then((subject) => {
* // ...
* });
*
* @param {function} fn
* @param {Object} options
* @param {boolean} [options.log=false]
* Log to Cypress bar
* @param {boolean} [options.retry=false]
* Retry when an upcomming assertion fails
*
* @yields {any}
* @since 0.0.0
*/
Cypress.Commands.overwrite('then', (originalCommand, subject, fn, options = {}) => {
if (_.isFunction(options)) {
// Flip the values of `fn` and `options`
[fn, options] = [options, fn];
}
validator.check('log', options.log, [true, false]);
validator.check('retry', options.retry, [true, false]);
if (options.retry && typeof options.log === 'undefined') {
options.log = true;
}
_.defaults(options, {
log: false,
retry: false,
});
// Setup logging
const consoleProps = {};
if (options.log) {
options._log = Cypress.log({
name: 'then',
message: '',
consoleProps: () => consoleProps,
});
if (isJquery(subject)) {
// Link the DOM element to the logger
options._log.set('$el', $(subject));
consoleProps['Applied to'] = $(subject);
} else {
consoleProps['Applied to'] = String(subject);
}
if (options.retry) {
options._log.set('message', 'retry');
}
}
/**
* This function is recursively called untill timeout or the upcomming
* assertion passes. Keep this function as fast as possible.
*
* @return {Promise}
*/
async function executeFnAndRetry() {
const result = await executeFn();
return cy.verifyUpcomingAssertions(result, options, {
// Try again by calling itself
onRetry: executeFnAndRetry,
});
}
/**
* Execute the provided callback function
*
* @return {*}
*/
async function executeFn() {
// Execute using the original `then` to not reinvent the wheel
return await originalCommand(subject, options, fn).then((value) => {
if (options.log) {
consoleProps.Yielded = value;
}
return value;
});
}
if (options.retry) {
return executeFnAndRetry();
}
return executeFn();
});
| cypress-commands/src/then.js/0 | {
"file_path": "cypress-commands/src/then.js",
"repo_id": "cypress-commands",
"token_count": 1101
} | 2 |
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
| cypress-drag-drop/LICENSE/0 | {
"file_path": "cypress-drag-drop/LICENSE",
"repo_id": "cypress-drag-drop",
"token_count": 8075
} | 3 |
describe('Drag drop', () => {
it('should be able to drag and drop elements', () => {
cy.visit('/')
cy.setExample('Basic')
cy.findByTestId('left').find('.item').assertList(['1', '2', '3', '4', '5', '6'])
cy.findByTestId('item-1')
.drag('[data-testid="right"]', { target: { position: 'left' } })
.then((success) => {
assert.isTrue(success)
})
cy.findByTestId('right').find('.item').assertList(['1'])
cy.findByTestId('left').find('.item').assertList(['2', '3', '4', '5', '6'])
})
})
| cypress-drag-drop/tests/specs/basic.cy.js/0 | {
"file_path": "cypress-drag-drop/tests/specs/basic.cy.js",
"repo_id": "cypress-drag-drop",
"token_count": 235
} | 4 |
# Contributing
## Questions
If you have questions about implementation details, help or support, then please use our dedicated community forum at [Github Discussions](https://github.com/msmps/cypress-layout-inspector/discussions) **PLEASE NOTE:** If you choose to instead open an issue for your question, your issue will be immediately closed and redirected to the forum.
## Reporting Issues
If you have found what you think is a bug, please [file an issue](https://github.com/msmps/cypress-layout-inspector/issues/new). **PLEASE NOTE:** Issues that are identified as implementation questions or non-issues will be immediately closed and redirected to [Github Discussions](https://github.com/msmps/cypress-layout-inspector/discussions)
## Suggesting new features
If you are here to suggest a feature, first create an issue if it does not already exist. From there, we will discuss use-cases for the feature and then finally discuss how it could be implemented.
## Development
If you have been assigned to fix an issue or develop a new feature, please follow these steps to get started:
- Fork this repository
- Install dependencies by running `$ npm install`
- Link `cypress-layout-inspector` locally by running `$ npm link`
- Auto-build files as you edit by running `$ npm run build`
- Implement your changes to files in the `src/` directory and corresponding test files in `cypress/`
- To run examples, follow their individual directions. Usually this is just `$ npm run test:debug`
- To run examples using your local build, link to the local `cypress-layout-inspector` by running `$ npm link cypress-layout-inspector` from the example's directory
- Document your changes in the appropriate doc page
- Git stage your required chnages and commit (see below commit guidelines)
- Submit PR for review
## Commit message conventions
`cypress-layout-inspector` is using [Angular Commit Message Conventions](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines).
We have very precise rules over how our git commit messages can be formatted. This leads to **more readable messages** that are easy to follow when looking through the **project history**.
### Commit Message Format
**Consider using: npx git-cz**
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special
format that includes a **type**, a **scope** and a **subject**:
```
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```
The **header** is mandatory and the **scope** of the header is optional.
Any line of the commit message cannot be longer than 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.
### Type
Must be one of the following:
- **feat**: A new feature
- **fix**: A bug fix
- **docs**: Documentation only changes
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing
semi-colons, etc)
- **refactor**: A code change that neither fixes a bug nor adds a feature
- **perf**: A code change that improves performance
- **test**: Adding missing or correcting existing tests
- **chore**: Changes to the build process or auxiliary tools and libraries such as documentation
generation
### Scope
The scope could be anything specifying place of the commit change. For example `alignment`, `position` etc...
You can use `*` when the change affects more than a single scope.
### Subject
The subject contains succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize first letter
- no dot (.) at the end
### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
### Footer
The footer should contain any information about **Breaking Changes** and is also the place to [reference GitHub issues that this commit closes](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue).
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
### Example
Here is an example of the release type that will be done based on a commit messages:
| Commit message | Release type |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------- |
| `fix(pencil): stop graphite breaking when too much pressure applied` | Patch Release |
| `feat(pencil): add 'graphiteWidth' option` | ~~Minor~~ Feature Release |
| `perf(pencil): remove graphiteWidth option`<br><br>`BREAKING CHANGE: The graphiteWidth option has been removed.`<br>`The default graphite width of 10mm is always used for performance reasons.` | ~~Major~~ Breaking Release |
### Revert
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
## Pull requests
Maintainers merge pull requests by squashing all commits and editing the commit message if necessary using the GitHub user interface.
Use an appropriate commit type. Be especially careful with breaking changes.
## Releases
For each new commit added to `master` with `git push` or by merging a pull request or merging from another branch, a github action is triggered and runs the `semantic-release` command to make a release if there are codebase changes since the last release that affect the package functionalities.
| cypress-layout-inspector/CONTRIBUTING.md/0 | {
"file_path": "cypress-layout-inspector/CONTRIBUTING.md",
"repo_id": "cypress-layout-inspector",
"token_count": 1955
} | 5 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cypress-layout-inspector test application</title>
<style>
*,
*::before,
*::after {
box-sizing: border-box;
}
.container {
display: flex;
flex-direction: column;
padding: 15px;
border: 1px solid lightgray;
max-width: 230px;
}
.block {
display: inline-flex;
justify-content: center;
align-items: center;
width: 200px;
height: 200px;
border: 1px dotted blue;
}
.block + .block {
margin-top: 50px;
border-color: red;
}
.block-2 {
width: 100px;
}
.block-4 {
width: 100px;
margin-left: 100px;
}
.block-8 {
width: 100px;
margin-left: 50px;
}
</style>
</head>
<body>
<pre>block-2 vertically aligned left of block-1</pre>
<div class="container">
<div class="block block-1">1</div>
<div class="block block-2">2</div>
</div>
<!-- -->
<pre>block-4 vertically aligned right of block-3</pre>
<div class="container">
<div class="block block-3">3</div>
<div class="block block-4">4</div>
</div>
<!-- -->
<pre>block-6 vertically aligned all with block-5</pre>
<div class="container">
<div class="block block-5">5</div>
<div class="block block-6">6</div>
</div>
<!-- -->
<pre>block-8 vertically aligned centered with block-7</pre>
<div class="container">
<div class="block block-7">7</div>
<div class="block block-8">8</div>
</div>
<!-- -->
</body>
</html>
| cypress-layout-inspector/cypress/fixtures/vertical.html/0 | {
"file_path": "cypress-layout-inspector/cypress/fixtures/vertical.html",
"repo_id": "cypress-layout-inspector",
"token_count": 877
} | 6 |
import dimensionsOverwrites from "./dimensions";
chai.use(dimensionsOverwrites);
| cypress-layout-inspector/src/overwrites/index.ts/0 | {
"file_path": "cypress-layout-inspector/src/overwrites/index.ts",
"repo_id": "cypress-layout-inspector",
"token_count": 25
} | 7 |
module.exports = {
plugins: [
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm"
]
};
| cypress-wait-until/release.config.js/0 | {
"file_path": "cypress-wait-until/release.config.js",
"repo_id": "cypress-wait-until",
"token_count": 59
} | 8 |
{
"eslint.alwaysShowStatus": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json"
],
"eslint.enable": true,
// this project does not use Prettier
// thus set all settings to disable accidentally running Prettier
"prettier.requireConfig": true,
"prettier.disableLanguages": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"json"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib",
// Support autocompletion and preview of strings.
// Additionally, support extraction of hardcoded strings into key-values.
"i18n-ally.localesPaths": "packages/frontend-shared/src/locales",
"i18n-ally.displayLanguage": "en-US",
"i18n-ally.enabledFrameworks": ["vue"],
"i18n-ally.extract.keyPrefix": "{fileNameWithoutExt}.",
"i18n-ally.extract.keyMaxLength": 40,
"i18n-ally.keystyle": "nested",
// Volar is the main extension that powers Vue's language features.
// These are commented out because they slow down node development
// "volar.autoCompleteRefs": false,
"volar.takeOverMode.enabled": "auto",
"editor.tabSize": 2,
}
| cypress/.vscode/settings.json/0 | {
"file_path": "cypress/.vscode/settings.json",
"repo_id": "cypress",
"token_count": 444
} | 9 |
exports['getJustVersion returns semver if passed 1'] = `
0.20.1
`
exports['getJustVersion returns semver with tag if passed 1'] = `
1.0.0-dev
`
exports['getJustVersion returns name if starts with cypress 1'] = `
cypress@dev
`
exports['getJustVersion returns name if starts with cypress 2'] = `
cypress@alpha
`
exports['getJustVersion returns name if starts with cypress 3'] = `
cypress@0.20.3
`
exports['getJustVersion returns name if matches cypress 1'] = `
cypress
`
exports['getJustVersion extracts version from url 1'] = {
"url": "https://foo.com/npm/0.20.3/develop-sha-13992/cypress.tgz",
"version": "0.20.3"
}
exports['getJustVersion extracts version with dev from url 1'] = {
"url": "https://foo.com/npm/0.20.3-dev/develop-sha-13992/cypress.tgz",
"version": "0.20.3-dev"
}
exports['getJustVersion for anything else returns the input 1'] = {
"url": "babababa",
"version": "babababa"
}
| cypress/__snapshots__/utils-spec.js/0 | {
"file_path": "cypress/__snapshots__/utils-spec.js",
"repo_id": "cypress",
"token_count": 334
} | 10 |
# CLI
The CLI is used to build the [cypress npm module](https://www.npmjs.com/package/cypress) to be run within a terminal.
**The CLI has the following responsibilities:**
- Allow users to print CLI commands
- Allow users to install the Cypress executable
- Allow users to print their current Cypress version
- Allow users to run Cypress tests from the terminal
- Allow users to open Cypress in the interactive Test Runner.
- Allow users to verify that Cypress is installed correctly and executable
- Allow users to manages the Cypress binary cache
- Allow users to pass in options that change way tests are ran or recorded (browsers used, specfiles ran, grouping, parallelization)
## Building
See `scripts/build.js`. Note that the built npm package will include [NPM_README.md](NPM_README.md) as its public README file.
## Testing
### Automated
From the repo's root, you can run unit tests with:
```bash
yarn test-unit --scope cypress
yarn test-watch --scope cypress
yarn test-debug --scope cypress
```
### Updating snapshots
Prepend `SNAPSHOT_UPDATE=1` to any test command. See [`snap-shot-it` instructions](https://github.com/bahmutov/snap-shot-it#advanced-use) for more info.
```bash
SNAPSHOT_UPDATE=1 yarn test-unit --scope cypress
```
#### Type Linting
When testing with `dtslint`, you may need to remove existing typescript installations before running the type linter (for instance, on OS X, you might `rm -rf ~/.dts/typescript-installs`) in order to reproduce issues with new versions of typescript (i.e., `@next`).
### Manual
To build and test an NPM package:
- `yarn`
- `yarn build`
This creates `build` folder.
- `cd build; yarn pack`
This creates an archive, usually named `cypress-v<version>.tgz`. You can install this archive from other projects, but because there is no corresponding binary yet (probably), skip binary download. For example from inside `cypress-example-kitchensink` folder
```shell
yarn add ~/{your-dirs}/cypress/cli/build/cypress-3.3.1.tgz --ignore-scripts
```
Which installs the `tgz` file we have just built from folder `Users/jane-lane/{your-dirs}/cypress/cli/build`.
#### Sub-package API
> How do deep imports from cypress/* get resolved?
The cypress npm package comes pre-assembled with mounting libraries for major front-end frameworks. These mounting libraries are the first examples of Cypress providing re-exported sub-packages. These sub-packages follow the same naming convention they do when they're published on **npm**, but without a leading **`@`** sign. For example:
##### An example of a sub-package: @cypress/vue, @cypress/react, @cypress/mount-utils
**Let's discuss the Vue mounting library that Cypress ships.**
If you'd installed the `@cypress/vue` package from NPM, you could write the following code.
This would be necessary when trying to use a version of Vue, React, or other library that may be newer or older than the current version of cypress itself.
```js
import { mount } from '@cypress/vue'
```
Now, with the sub-package API, you're able to import the latest APIs directly from Cypress without needing to install a separate dependency.
```js
import { mount } from 'cypress/vue'
```
The only difference is the import name, and if you still need to use a specific version of one of our external sub-packages, you may install it and import it directly.
##### Adding a new sub-package
There are a few steps when adding a new sub-package.
1. Make sure the sub-package's rollup build is _self-contained_ or that any dependencies are also declared in the CLI's **`package.json`**.
2. Now, in the **`postbuild`** script for the sub-package you'd like to embed, invoke `node ./scripts/sync-exported-npm-with-cli.js` (relative to the sub-package, see **`npm/vue`** for an example).
3. Add the sub-package's name to the following locations:
- **`cli/.gitignore`**
- **`cli/scripts/post-build.js`**
- **`.eslintignore`** (under cli/sub-package)
4. DO NOT manually update the **package.json** file. Running `yarn build` will automate this process.
5. Commit the changed files.
[Here is an example Pull Request](https://github.com/cypress-io/cypress/pull/20930/files#diff-21b1fe66043572c76c549a4fc5f186e9a69c330b186fc91116b9b70a4d047902)
#### Module API
The module API can be tested locally using something like:
```typescript
/* @ts-ignore */
import cypress from '../../cli/lib/cypress'
const run = cypress.run as (options?: Partial<CypressCommandLine.CypressRunOptions>) => Promise<CypressCommandLine.CypressRunResult | CypressCommandLine.CypressFailedRunResult>
run({
spec: './cypress/component/advanced/framer-motion/Motion.spec.tsx',
testingType: 'component',
/* @ts-ignore */
dev: true,
}).then(results => {
console.log(results)
})
```
Note that the `dev` flag is required for local testing, as otherwise the command will fail with a binary error.
| cypress/cli/README.md/0 | {
"file_path": "cypress/cli/README.md",
"repo_id": "cypress",
"token_count": 1447
} | 11 |
const minimist = require('minimist')
const debug = require('debug')('cypress:cli')
const args = minimist(process.argv.slice(2))
const util = require('./lib/util')
// we're being used from the command line
switch (args.exec) {
case 'install':
debug('installing Cypress from NPM')
require('./lib/tasks/install')
.start({ force: args.force })
.catch(util.logErrorExit1)
break
case 'verify':
// for simple testing in the monorepo
debug('verifying Cypress')
require('./lib/tasks/verify')
.start({ force: true }) // always force verification
.catch(util.logErrorExit1)
break
default:
debug('exporting Cypress module interface')
module.exports = require('./lib/cypress')
}
| cypress/cli/index.js/0 | {
"file_path": "cypress/cli/index.js",
"repo_id": "cypress",
"token_count": 258
} | 12 |
const la = require('lazy-ass')
const is = require('check-more-types')
const os = require('os')
const url = require('url')
const path = require('path')
const debug = require('debug')('cypress:cli')
const request = require('@cypress/request')
const Promise = require('bluebird')
const requestProgress = require('request-progress')
const { stripIndent } = require('common-tags')
const getProxyForUrl = require('proxy-from-env').getProxyForUrl
const { throwFormErrorText, errors } = require('../errors')
const fs = require('../fs')
const util = require('../util')
const defaultBaseUrl = 'https://download.cypress.io/'
const defaultMaxRedirects = 10
const getProxyForUrlWithNpmConfig = (url) => {
return getProxyForUrl(url) ||
process.env.npm_config_https_proxy ||
process.env.npm_config_proxy ||
null
}
const getBaseUrl = () => {
if (util.getEnv('CYPRESS_DOWNLOAD_MIRROR')) {
let baseUrl = util.getEnv('CYPRESS_DOWNLOAD_MIRROR')
if (!baseUrl.endsWith('/')) {
baseUrl += '/'
}
return baseUrl
}
return defaultBaseUrl
}
const getCA = () => {
return new Promise((resolve) => {
if (process.env.npm_config_cafile) {
fs.readFile(process.env.npm_config_cafile, 'utf8')
.then((cafileContent) => {
resolve(cafileContent)
})
.catch(() => {
resolve()
})
} else if (process.env.npm_config_ca) {
resolve(process.env.npm_config_ca)
} else {
resolve()
}
})
}
const prepend = (arch, urlPath, version) => {
const endpoint = url.resolve(getBaseUrl(), urlPath)
const platform = os.platform()
const pathTemplate = util.getEnv('CYPRESS_DOWNLOAD_PATH_TEMPLATE', true)
return pathTemplate
? (
pathTemplate
.replace(/\\?\$\{endpoint\}/g, endpoint)
.replace(/\\?\$\{platform\}/g, platform)
.replace(/\\?\$\{arch\}/g, arch)
.replace(/\\?\$\{version\}/g, version)
)
: `${endpoint}?platform=${platform}&arch=${arch}`
}
const getUrl = (arch, version) => {
if (is.url(version)) {
debug('version is already an url', version)
return version
}
const urlPath = version ? `desktop/${version}` : 'desktop'
return prepend(arch, urlPath, version)
}
const statusMessage = (err) => {
return (err.statusCode
? [err.statusCode, err.statusMessage].join(' - ')
: err.toString())
}
const prettyDownloadErr = (err, url) => {
const msg = stripIndent`
URL: ${url}
${statusMessage(err)}
`
debug(msg)
return throwFormErrorText(errors.failedDownload)(msg)
}
/**
* Checks checksum and file size for the given file. Allows both
* values or just one of them to be checked.
*/
const verifyDownloadedFile = (filename, expectedSize, expectedChecksum) => {
if (expectedSize && expectedChecksum) {
debug('verifying checksum and file size')
return Promise.join(
util.getFileChecksum(filename),
util.getFileSize(filename),
(checksum, filesize) => {
if (checksum === expectedChecksum && filesize === expectedSize) {
debug('downloaded file has the expected checksum and size ✅')
return
}
debug('raising error: checksum or file size mismatch')
const text = stripIndent`
Corrupted download
Expected downloaded file to have checksum: ${expectedChecksum}
Computed checksum: ${checksum}
Expected downloaded file to have size: ${expectedSize}
Computed size: ${filesize}
`
debug(text)
throw new Error(text)
},
)
}
if (expectedChecksum) {
debug('only checking expected file checksum %d', expectedChecksum)
return util.getFileChecksum(filename)
.then((checksum) => {
if (checksum === expectedChecksum) {
debug('downloaded file has the expected checksum ✅')
return
}
debug('raising error: file checksum mismatch')
const text = stripIndent`
Corrupted download
Expected downloaded file to have checksum: ${expectedChecksum}
Computed checksum: ${checksum}
`
throw new Error(text)
})
}
if (expectedSize) {
// maybe we don't have a checksum, but at least CDN returns content length
// which we can check against the file size
debug('only checking expected file size %d', expectedSize)
return util.getFileSize(filename)
.then((filesize) => {
if (filesize === expectedSize) {
debug('downloaded file has the expected size ✅')
return
}
debug('raising error: file size mismatch')
const text = stripIndent`
Corrupted download
Expected downloaded file to have size: ${expectedSize}
Computed size: ${filesize}
`
throw new Error(text)
})
}
debug('downloaded file lacks checksum or size to verify')
return Promise.resolve()
}
// downloads from given url
// return an object with
// {filename: ..., downloaded: true}
const downloadFromUrl = ({ url, downloadDestination, progress, ca, version, redirectTTL = defaultMaxRedirects }) => {
if (redirectTTL <= 0) {
return Promise.reject(new Error(
stripIndent`
Failed downloading the Cypress binary.
There were too many redirects. The default allowance is ${defaultMaxRedirects}.
Maybe you got stuck in a redirect loop?
`,
))
}
return new Promise((resolve, reject) => {
const proxy = getProxyForUrlWithNpmConfig(url)
debug('Downloading package', {
url,
proxy,
downloadDestination,
})
if (ca) {
debug('using custom CA details from npm config')
}
const reqOptions = {
uri: url,
...(proxy ? { proxy } : {}),
...(ca ? { agentOptions: { ca } } : {}),
method: 'GET',
followRedirect: false,
}
const req = request(reqOptions)
// closure
let started = null
let expectedSize
let expectedChecksum
requestProgress(req, {
throttle: progress.throttle,
})
.on('response', (response) => {
// we have computed checksum and filesize during test runner binary build
// and have set it on the S3 object as user meta data, available via
// these custom headers "x-amz-meta-..."
// see https://github.com/cypress-io/cypress/pull/4092
expectedSize = response.headers['x-amz-meta-size'] ||
response.headers['content-length']
expectedChecksum = response.headers['x-amz-meta-checksum']
if (expectedChecksum) {
debug('expected checksum %s', expectedChecksum)
}
if (expectedSize) {
// convert from string (all Amazon custom headers are strings)
expectedSize = Number(expectedSize)
debug('expected file size %d', expectedSize)
}
// start counting now once we've gotten
// response headers
started = new Date()
if (/^3/.test(response.statusCode)) {
const redirectVersion = response.headers['x-version']
const redirectUrl = response.headers.location
debug('redirect version:', redirectVersion)
debug('redirect url:', redirectUrl)
downloadFromUrl({ url: redirectUrl, progress, ca, downloadDestination, version: redirectVersion, redirectTTL: redirectTTL - 1 })
.then(resolve).catch(reject)
// if our status code does not start with 200
} else if (!/^2/.test(response.statusCode)) {
debug('response code %d', response.statusCode)
const err = new Error(
stripIndent`
Failed downloading the Cypress binary.
Response code: ${response.statusCode}
Response message: ${response.statusMessage}
`,
)
reject(err)
// status codes here are all 2xx
} else {
// We only enable this pipe connection when we know we've got a successful return
// and handle the completion with verify and resolve
// there was a possible race condition between end of request and close of writeStream
// that is made ordered with this Promise.all
Promise.all([new Promise((r) => {
return response.pipe(fs.createWriteStream(downloadDestination).on('close', r))
}), new Promise((r) => response.on('end', r))])
.then(() => {
debug('downloading finished')
verifyDownloadedFile(downloadDestination, expectedSize,
expectedChecksum)
.then(() => debug('verified'))
.then(() => resolve(version))
.catch(reject)
})
}
})
.on('error', (e) => {
if (e.code === 'ECONNRESET') return // sometimes proxies give ECONNRESET but we don't care
reject(e)
})
.on('progress', (state) => {
// total time we've elapsed
// starting on our first progress notification
const elapsed = new Date() - started
// request-progress sends a value between 0 and 1
const percentage = util.convertPercentToPercentage(state.percent)
const eta = util.calculateEta(percentage, elapsed)
// send up our percent and seconds remaining
progress.onProgress(percentage, util.secsRemaining(eta))
})
})
}
/**
* Download Cypress.zip from external versionUrl to local file.
* @param [string] version Could be "3.3.0" or full URL
* @param [string] downloadDestination Local filename to save as
*/
const start = async (opts) => {
let { version, downloadDestination, progress, redirectTTL } = opts
if (!downloadDestination) {
la(is.unemptyString(downloadDestination), 'missing download dir', opts)
}
if (!progress) {
progress = { onProgress: () => {
return {}
} }
}
const arch = await util.getRealArch()
const versionUrl = getUrl(arch, version)
progress.throttle = 100
debug('needed Cypress version: %s', version)
debug('source url %s', versionUrl)
debug(`downloading cypress.zip to "${downloadDestination}"`)
// ensure download dir exists
return fs.ensureDirAsync(path.dirname(downloadDestination))
.then(() => {
return getCA()
})
.then((ca) => {
return downloadFromUrl({ url: versionUrl, downloadDestination, progress, ca, version,
...(redirectTTL ? { redirectTTL } : {}) })
})
.catch((err) => {
return prettyDownloadErr(err, versionUrl)
})
}
module.exports = {
start,
getUrl,
getProxyForUrlWithNpmConfig,
getCA,
}
| cypress/cli/lib/tasks/download.js/0 | {
"file_path": "cypress/cli/lib/tasks/download.js",
"repo_id": "cypress",
"token_count": 3883
} | 13 |
#!/usr/bin/env node
const { includeTypes } = require('./utils')
const { join } = require('path')
const shell = require('shelljs')
shell.set('-v') // verbose
shell.set('-e') // any error is fatal
shell.rm('-rf', 'build')
shell.mkdir('-p', 'build/bin')
shell.mkdir('-p', 'build/types')
shell.cp('bin/cypress', 'build/bin/cypress')
shell.cp('NPM_README.md', 'build/README.md')
shell.cp('.release.json', 'build/.release.json')
// copies our typescript definitions
shell.cp('-R', 'types/*.ts', 'build/types/')
// copies 3rd party typescript definitions
includeTypes.forEach((folder) => {
const source = join('types', folder)
shell.cp('-R', source, 'build/types')
})
// TODO: Add a typescript or rollup build step
// The only reason start-build.js exists
// is because the cli package does not have an actual
// build process to compile index.js and lib
shell.exec('babel lib -d build/lib')
shell.exec('babel index.js -o build/index.js')
shell.cp('index.mjs', 'build/index.mjs')
| cypress/cli/scripts/start-build.js/0 | {
"file_path": "cypress/cli/scripts/start-build.js",
"repo_id": "cypress",
"token_count": 342
} | 14 |
require('../../spec_helper')
const _ = require('lodash')
const cp = require('child_process')
const os = require('os')
const tty = require('tty')
const path = require('path')
const EE = require('events')
const mockedEnv = require('mocked-env')
const debug = require('debug')('test')
const state = require(`${lib}/tasks/state`)
const xvfb = require(`${lib}/exec/xvfb`)
const spawn = require(`${lib}/exec/spawn`)
const verify = require(`${lib}/tasks/verify`)
const util = require(`${lib}/util.js`)
const expect = require('chai').expect
const snapshot = require('../../support/snapshot')
const cwd = process.cwd()
const execPath = process.execPath
const nodeVersion = process.versions.node
const defaultBinaryDir = '/default/binary/dir'
describe('lib/exec/spawn', function () {
beforeEach(function () {
os.platform.returns('darwin')
sinon.stub(process, 'exit')
this.spawnedProcess = {
on: sinon.stub().returns(undefined),
unref: sinon.stub().returns(undefined),
stdin: {
on: sinon.stub().returns(undefined),
pipe: sinon.stub().returns(undefined),
},
stdout: {
on: sinon.stub().returns(undefined),
pipe: sinon.stub().returns(undefined),
},
stderr: {
pipe: sinon.stub().returns(undefined),
on: sinon.stub().returns(undefined),
},
kill: sinon.stub(),
// expected by sinon
cancel: sinon.stub(),
}
// process.stdin is both an event emitter and a readable stream
this.processStdin = new EE()
this.processStdin.pipe = sinon.stub().returns(undefined)
sinon.stub(process, 'stdin').value(this.processStdin)
sinon.stub(cp, 'spawn').returns(this.spawnedProcess)
sinon.stub(xvfb, 'start').resolves()
sinon.stub(xvfb, 'stop').resolves()
sinon.stub(xvfb, 'isNeeded').returns(false)
sinon.stub(state, 'getBinaryDir').returns(defaultBinaryDir)
sinon.stub(state, 'getPathToExecutable').withArgs(defaultBinaryDir).returns('/path/to/cypress')
})
context('.isGarbageLineWarning', () => {
it('returns true', () => {
const str = `
[46454:0702/140217.292422:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7f8bc5815a00.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete
[46454:0702/140217.292466:ERROR:gles2_cmd_decoder.cc(17788)] [.RenderWorker-0x7f8bc5815a00.GpuRasterization]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[46454:0702/140217.292526:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7f8bc5815a00.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete
[46454:0702/140217.292555:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7f8bc5815a00.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete
[46454:0702/140217.292584:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7f8bc5815a00.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete
[46454:0702/140217.292612:ERROR:gles2_cmd_decoder.cc(4439)] [.RenderWorker-0x7f8bc5815a00.GpuRasterization]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete'
[1957:0406/160550.146820:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[1957:0406/160550.147994:ERROR:bus.cc(392)] Failed to connect to the bus: Address does not contain a colon
[3801:0606/152837.383892:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.googletagmanager.com failed:
----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.googletagmanager.com) -----
ERROR: No matching issuer found
objc[60540]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffa5a006318) and /{path/to/app}/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10f8a89c8). One of the two will be used. Which one is undefined.
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_intel.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so supports Vulkan 1.1, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this verison of Vulkan (Policy #LDP_DRIVER_7)
Warning: Layer VK_LAYER_MESA_device_select uses API version 1.2 which is older than the application specified API version of 1.3. May cause issues.
Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
`
const lines = _
.chain(str)
.split('\n')
.invokeMap('trim')
.compact()
.value()
_.each(lines, (line) => {
expect(spawn.isGarbageLineWarning(line), `expected line to be garbage: ${line}`).to.be.true
})
})
})
context('.start', function () {
// ️️⚠️ NOTE ⚠️
// when asserting the calls made to spawn the child Cypress process
// we have to be _very_ careful. Spawn uses process.env object, if an assertion
// fails, it will print the entire process.env object to the logs, which
// might contain sensitive environment variables. Think about what the
// failed assertion might print to the public CI logs and limit
// the environment variables when running tests on CI.
it('passes args + options to spawn', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(verify, 'needsSandbox').returns(false)
return spawn.start('--foo', { foo: 'bar' })
.then(() => {
expect(cp.spawn).to.be.calledWithMatch('/path/to/cypress', [
'--',
'--foo',
'--cwd',
cwd,
'--userNodePath',
execPath,
'--userNodeVersion',
nodeVersion,
], {
detached: false,
stdio: ['inherit', 'inherit', 'pipe'],
})
})
})
it('uses --no-sandbox when needed', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(verify, 'needsSandbox').returns(true)
return spawn.start('--foo', { foo: 'bar' })
.then(() => {
// skip the options argument: we do not need anything about it
// and also less risk that a failed assertion would dump the
// entire ENV object with possible sensitive variables
const args = cp.spawn.firstCall.args.slice(0, 2)
// it is important for "--no-sandbox" to appear before "--" separator
const expectedCliArgs = [
'--no-sandbox',
'--',
'--foo',
'--cwd',
cwd,
'--userNodePath',
execPath,
'--userNodeVersion',
nodeVersion,
]
expect(args).to.deep.equal(['/path/to/cypress', expectedCliArgs])
})
})
it('uses npm command when running in dev mode', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(verify, 'needsSandbox').returns(false)
const p = path.resolve('..', 'scripts', 'start.js')
return spawn.start('--foo', { dev: true, foo: 'bar' })
.then(() => {
expect(cp.spawn).to.be.calledWithMatch('node', [
p,
'--',
'--foo',
'--cwd',
cwd,
'--userNodePath',
execPath,
'--userNodeVersion',
nodeVersion,
], {
detached: false,
stdio: ['inherit', 'inherit', 'pipe'],
})
})
})
it('does not pass --no-sandbox when running in dev mode', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(verify, 'needsSandbox').returns(true)
const p = path.resolve('..', 'scripts', 'start.js')
return spawn.start('--foo', { dev: true, foo: 'bar' })
.then(() => {
expect(cp.spawn).to.be.calledWithMatch('node', [
p,
'--',
'--foo',
'--cwd',
cwd,
'--userNodePath',
execPath,
'--userNodeVersion',
nodeVersion,
], {
detached: false,
stdio: ['inherit', 'inherit', 'pipe'],
})
})
})
it('starts xvfb when needed', function () {
xvfb.isNeeded.returns(true)
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start('--foo')
.then(() => {
expect(xvfb.start).to.be.calledOnce
})
})
context('closes', function () {
['close', 'exit'].forEach((event) => {
it(`if '${event}' event fired`, function () {
this.spawnedProcess.on.withArgs(event).yieldsAsync(0)
return spawn.start('--foo')
})
})
it('if exit event fired and close event fired', function () {
this.spawnedProcess.on.withArgs('exit').yieldsAsync(0)
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start('--foo')
})
})
context('detects kill signal', function () {
it('exits with error on SIGKILL', function () {
this.spawnedProcess.on.withArgs('exit').yieldsAsync(null, 'SIGKILL')
return spawn.start('--foo')
.then(() => {
throw new Error('should have hit error handler but did not')
}, (e) => {
debug('error message', e.message)
snapshot(e.message)
})
})
})
it('does not start xvfb when its not needed', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start('--foo')
.then(() => {
expect(xvfb.start).not.to.be.called
})
})
it('stops xvfb when spawn closes', function () {
xvfb.isNeeded.returns(true)
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
this.spawnedProcess.on.withArgs('close').yields()
return spawn.start('--foo')
.then(() => {
expect(xvfb.stop).to.be.calledOnce
})
})
it('resolves with spawned close code in the message', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(10)
return spawn.start('--foo')
.then((code) => {
expect(code).to.equal(10)
})
})
describe('Linux display', () => {
let restore
beforeEach(() => {
restore = mockedEnv({
DISPLAY: 'test-display',
})
})
afterEach(() => {
restore()
})
it('retries with xvfb if fails with display exit code', function () {
this.spawnedProcess.on.withArgs('close').onFirstCall().yieldsAsync(1)
this.spawnedProcess.on.withArgs('close').onSecondCall().yieldsAsync(0)
const buf1 = '[some noise here] Gtk: cannot open display: 987'
this.spawnedProcess.stderr.on
.withArgs('data')
.yields(buf1)
os.platform.returns('linux')
return spawn.start('--foo')
.then((code) => {
expect(xvfb.start).to.have.been.calledOnce
expect(xvfb.stop).to.have.been.calledOnce
expect(cp.spawn).to.have.been.calledTwice
// second code should be 0 after successfully running with Xvfb
expect(code).to.equal(0)
})
})
})
it('rejects with error from spawn', function () {
const msg = 'the error message'
this.spawnedProcess.on.withArgs('error').yieldsAsync(new Error(msg))
return spawn.start('--foo')
.then(() => {
throw new Error('should have hit error handler but did not')
}, (e) => {
debug('error message', e.message)
expect(e.message).to.include(msg)
})
})
it('unrefs if options.detached is true', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start(null, { detached: true })
.then(() => {
expect(this.spawnedProcess.unref).to.be.calledOnce
})
})
it('does not unref by default', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start()
.then(() => {
expect(this.spawnedProcess.unref).not.to.be.called
})
})
it('sets process.env to options.env', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
process.env.FOO = 'bar'
return spawn.start()
.then(() => {
expect(cp.spawn.firstCall.args[2].env.FOO).to.eq('bar')
})
})
it('forces colors and streams when supported', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(util, 'supportsColor').returns(true)
sinon.stub(tty, 'isatty').returns(true)
return spawn.start([], { env: {} })
.then(() => {
snapshot(cp.spawn.firstCall.args[2].env)
})
})
it('sets windowsHide:false property in windows', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
os.platform.returns('win32')
return spawn.start([], { env: {} })
.then(() => {
expect(cp.spawn.firstCall.args[2].windowsHide).to.be.false
})
})
it('does not set windowsHide property when in darwin', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start([], { env: {} })
.then(() => {
expect(cp.spawn.firstCall.args[2].windowsHide).to.be.undefined
})
})
it('does not force colors and streams when not supported', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(util, 'supportsColor').returns(false)
sinon.stub(tty, 'isatty').returns(false)
return spawn.start([], { env: {} })
.then(() => {
snapshot(cp.spawn.firstCall.args[2].env)
})
})
it('pipes when on win32', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
os.platform.returns('win32')
xvfb.isNeeded.returns(false)
return spawn.start()
.then(() => {
expect(cp.spawn.firstCall.args[2].stdio).to.deep.eq('pipe')
// parent process STDIN was piped to child process STDIN
expect(this.processStdin.pipe, 'process.stdin').to.have.been.calledOnce
.and.to.have.been.calledWith(this.spawnedProcess.stdin)
})
})
it('inherits when on linux and xvfb isn\'t needed', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
os.platform.returns('linux')
xvfb.isNeeded.returns(false)
return spawn.start()
.then(() => {
expect(cp.spawn.firstCall.args[2].stdio).to.deep.eq('inherit')
})
})
it('uses [inherit, inherit, pipe] when linux and xvfb is needed', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
xvfb.isNeeded.returns(true)
os.platform.returns('linux')
return spawn.start()
.then(() => {
expect(cp.spawn.firstCall.args[2].stdio).to.deep.eq([
'inherit', 'inherit', 'pipe',
])
})
})
it('uses [inherit, inherit, pipe] on darwin', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
xvfb.isNeeded.returns(false)
os.platform.returns('darwin')
return spawn.start()
.then(() => {
expect(cp.spawn.firstCall.args[2].stdio).to.deep.eq([
'inherit', 'inherit', 'pipe',
])
})
})
it('writes everything on win32', function () {
const buf1 = Buffer.from('asdf')
this.spawnedProcess.stdin.pipe.withArgs(process.stdin)
this.spawnedProcess.stdout.pipe.withArgs(process.stdout)
this.spawnedProcess.stderr.on
.withArgs('data')
.yields(buf1)
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(process.stderr, 'write').withArgs(buf1)
os.platform.returns('win32')
return spawn.start()
})
it('does not write to process.stderr when from xlib or libudev', function () {
const buf1 = Buffer.from('Xlib: something foo')
const buf2 = Buffer.from('libudev something bar')
const buf3 = Buffer.from('asdf')
this.spawnedProcess.stderr.on
.withArgs('data')
.onFirstCall()
.yields(buf1)
.onSecondCall()
.yields(buf2)
.onThirdCall()
.yields(buf3)
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(process.stderr, 'write').withArgs(buf3)
os.platform.returns('linux')
xvfb.isNeeded.returns(true)
return spawn.start()
.then(() => {
expect(process.stderr.write).not.to.be.calledWith(buf1)
expect(process.stderr.write).not.to.be.calledWith(buf2)
})
})
it('does not write to process.stderr when from high sierra warnings', function () {
const buf1 = Buffer.from('2018-05-19 15:30:30.287 Cypress[7850:32145] *** WARNING: Textured Window')
const buf2 = Buffer.from('asdf')
this.spawnedProcess.stderr.on
.withArgs('data')
.onFirstCall()
.yields(buf1)
.onSecondCall(buf2)
.yields(buf2)
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
sinon.stub(process.stderr, 'write').withArgs(buf2)
os.platform.returns('darwin')
return spawn.start()
.then(() => {
expect(process.stderr.write).not.to.be.calledWith(buf1)
})
})
// https://github.com/cypress-io/cypress/issues/1841
// https://github.com/cypress-io/cypress/issues/5241
;['EPIPE', 'ENOTCONN'].forEach((errCode) => {
it(`catches process.stdin errors and returns when code=${errCode}`, function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start()
.then(() => {
let called = false
const fn = () => {
called = true
const err = new Error()
err.code = errCode
return process.stdin.emit('error', err)
}
expect(fn).not.to.throw()
expect(called).to.be.true
})
})
})
it('throws process.stdin errors code!=EPIPE', function () {
this.spawnedProcess.on.withArgs('close').yieldsAsync(0)
return spawn.start()
.then(() => {
const fn = () => {
const err = new Error('wattttt')
err.code = 'FAILWHALE'
return process.stdin.emit('error', err)
}
expect(fn).to.throw(/wattttt/)
})
})
})
})
| cypress/cli/test/lib/exec/spawn_spec.js/0 | {
"file_path": "cypress/cli/test/lib/exec/spawn_spec.js",
"repo_id": "cypress",
"token_count": 8597
} | 15 |
const spawnMock = require('spawn-mock')
module.exports = {
mockSpawn (cb) {
return spawnMock.mockSpawn((cp) => {
// execa expects .cancel to exist
cp.cancel = sinon.stub()
return cb(cp)
})
},
}
| cypress/cli/test/support/spawn-mock.js/0 | {
"file_path": "cypress/cli/test/support/spawn-mock.js",
"repo_id": "cypress",
"token_count": 100
} | 16 |
namespace CypressLodashTests {
Cypress._ // $ExpectType LoDashStatic
Cypress._.each([1], item => {
item // $ExpectType number
})
}
namespace CypressSinonTests {
Cypress.sinon // $ExpectType SinonStatic
const stub = cy.stub()
stub(2, 'foo')
expect(stub).to.have.been.calledWith(Cypress.sinon.match.number, Cypress.sinon.match('foo'))
const stub2 = Cypress.sinon.stub()
stub2(2, 'foo')
expect(stub2).to.have.been.calledWith(Cypress.sinon.match.number, Cypress.sinon.match('foo'))
}
namespace CypressJqueryTests {
Cypress.$ // $ExpectType JQueryStatic
Cypress.$('selector') // $ExpectType JQuery<HTMLElement>
Cypress.$('selector').click() // $ExpectType JQuery<HTMLElement>
}
namespace CypressAutomationTests {
Cypress.automation('hello') // $ExpectType Promise<any>
}
namespace CypressConfigTests {
// getters
Cypress.config('baseUrl') // $ExpectType string | null
Cypress.config().baseUrl // $ExpectType string | null
// setters
Cypress.config('baseUrl', '.') // $ExpectType void
Cypress.config({ e2e: { baseUrl: '.' } }) // $ExpectError
Cypress.config({ e2e: { baseUrl: null } }) // $ExpectError
Cypress.config({ e2e: { baseUrl: '.', } }) // $ExpectError
Cypress.config({ component: { baseUrl: '.', devServer: () => ({} as any) } }) // $ExpectError
Cypress.config({ e2e: { indexHtmlFile: 'index.html' } }) // $ExpectError
Cypress.config({ testIsolation: false }) // $ExpectError
Cypress.config('taskTimeout') // $ExpectType number
Cypress.config('includeShadowDom') // $ExpectType boolean
}
namespace CypressEnvTests {
// Just making sure these are valid - no real type safety
Cypress.env('foo')
Cypress.env('foo', 'bar')
Cypress.env().foo
Cypress.env({
foo: 'bar'
})
}
namespace CypressIsCyTests {
Cypress.isCy(cy) // $ExpectType boolean
Cypress.isCy(undefined) // $ExpectType boolean
const chainer = cy.wrap("foo").then(function() {
if (Cypress.isCy(chainer)) {
chainer // $ExpectType Chainable<string>
}
})
}
declare namespace Cypress {
interface Chainable {
newCommand: (arg: string) => Chainable<number>
newQuery: (arg: string) => Chainable<number>
}
}
namespace CypressCommandsTests {
Cypress.Commands.add('newCommand', (arg) => {
// $ExpectType string
arg
return
})
Cypress.Commands.add('newCommand', (arg) => {
// $ExpectType string
arg
})
Cypress.Commands.add('newCommand', function(arg) {
this // $ExpectType Context
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: true }, (subject, arg) => {
subject // $ExpectType any
arg // $ExpectType string
return
})
Cypress.Commands.add('newCommand', { prevSubject: false }, (arg: string) => {
arg // $ExpectType string
return
})
Cypress.Commands.add('newCommand', { prevSubject: 'optional' }, (subject, arg) => {
subject // $ExpectType unknown
arg // $ExpectType string
return
})
Cypress.Commands.add('newCommand', { prevSubject: 'optional' }, (subject, arg) => {
subject // $ExpectType unknown
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: ['optional'] }, (subject, arg) => {
subject // $ExpectType unknown
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: 'document' }, (subject, arg) => {
subject // $ExpectType Document
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: 'window' }, (subject, arg) => {
subject // $ExpectType Window
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: 'element' }, (subject, arg) => {
subject // $ExpectType JQueryWithSelector<HTMLElement>
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: ['element'] }, (subject, arg) => {
subject // $ExpectType JQueryWithSelector<HTMLElement>
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: ['element', 'document', 'window'] }, (subject, arg) => {
if (subject instanceof Window) {
subject // $ExpectType Window
} else if (subject instanceof Document) {
subject // $ExpectType Document
} else {
subject // $ExpectType JQueryWithSelector<HTMLElement>
}
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', { prevSubject: ['window', 'document', 'optional', 'element'] }, (subject, arg) => {
if (subject instanceof Window) {
subject // $ExpectType Window
} else if (subject instanceof Document) {
subject // $ExpectType Document
} else if (subject) {
subject // $ExpectType JQueryWithSelector<HTMLElement>
} else {
subject // $ExpectType void
}
arg // $ExpectType string
})
Cypress.Commands.add('newCommand', (arg) => {
// $ExpectType string
arg
return cy.wrap(new Promise<number>((resolve) => { resolve(5) }))
})
Cypress.Commands.addAll({
newCommand(arg) {
// $ExpectType any
arg
this // $ExpectType Context
return
},
newCommand2(arg, arg2) {
// $ExpectType any
arg
// $ExpectType any
arg2
},
newCommand3: (arg) => {
// $ExpectType any
arg
return
},
newCommand4: (arg) => {
// $ExpectType any
arg
},
})
Cypress.Commands.addAll({ prevSubject: true }, {
newCommand: (subject, arg) => {
subject // $ExpectType any
arg // $ExpectType any
return
},
})
Cypress.Commands.addAll({ prevSubject: false }, {
newCommand: (arg) => {
arg // $ExpectType any
return
},
})
Cypress.Commands.addAll({ prevSubject: 'optional' }, {
newCommand: (subject, arg) => {
subject // $ExpectType unknown
arg // $ExpectType any
return
},
newCommand2: (subject, arg) => {
subject // $ExpectType unknown
arg // $ExpectType any
},
})
Cypress.Commands.addAll({ prevSubject: ['optional'] }, {
newCommand: (subject, arg) => {
subject // $ExpectType unknown
arg // $ExpectType any
},
})
Cypress.Commands.addAll({ prevSubject: 'document' }, {
newCommand: (subject, arg) => {
subject // $ExpectType Document
arg // $ExpectType any
},
})
Cypress.Commands.addAll({ prevSubject: 'window' }, {
newCommand: (subject, arg) => {
subject // $ExpectType Window
arg // $ExpectType any
},
})
Cypress.Commands.addAll({ prevSubject: 'element' }, {
newCommand: (subject, arg) => {
subject // $ExpectType JQueryWithSelector<HTMLElement>
arg // $ExpectType any
}
})
Cypress.Commands.addAll({ prevSubject: ['element'] }, {
newCommand: (subject, arg) => {
subject // $ExpectType JQueryWithSelector<HTMLElement>
arg // $ExpectType any
}
})
Cypress.Commands.addAll({ prevSubject: ['element', 'document', 'window'] }, {
newCommand: (subject, arg) => {
if (subject instanceof Window) {
subject // $ExpectType Window
} else if (subject instanceof Document) {
subject // $ExpectType Document
} else {
subject // $ExpectType JQueryWithSelector<HTMLElement>
}
arg // $ExpectType any
}
})
Cypress.Commands.addAll({ prevSubject: ['window', 'document', 'optional', 'element'] }, {
newCommand: (subject, arg) => {
if (subject instanceof Window) {
subject // $ExpectType Window
} else if (subject instanceof Document) {
subject // $ExpectType Document
} else if (subject) {
subject // $ExpectType JQueryWithSelector<HTMLElement>
} else {
subject // $ExpectType void
}
arg // $ExpectType any
}
})
Cypress.Commands.addAll({
newCommand: (arg) => {
// $ExpectType any
arg
return cy.wrap(new Promise<number>((resolve) => { resolve(5) }))
}
})
Cypress.Commands.overwrite('newCommand', (originalFn, arg) => {
arg // $ExpectType string
originalFn // $ExpectedType Chainable['newCommand']
originalFn(arg) // $ExpectType Chainable<number>
})
Cypress.Commands.overwrite('newCommand', function(originalFn, arg) {
this // $ExpectType Context
arg // $ExpectType string
originalFn // $ExpectedType Chainable['newCommand']
originalFn.apply(this, [arg]) // $ExpectType Chainable<number>
})
Cypress.Commands.overwrite<'type', 'element'>('type', (originalFn, element, text, options?: Partial<Cypress.TypeOptions & { sensitive: boolean }>) => {
element // $ExpectType JQueryWithSelector<HTMLElement>
text // $ExpectType string
if (options && options.sensitive) {
// turn off original log
options.log = false
// create our own log with masked message
Cypress.log({
$el: element,
name: 'type',
message: '*'.repeat(text.length),
})
}
return originalFn(element, text, options)
})
Cypress.Commands.overwrite<'screenshot', 'element'>('screenshot', (originalFn, subject, fileName, options) => {
subject // $ExpectType JQueryWithSelector<HTMLElement>
fileName // $ExpectType string
options // $ExpectType Partial<Loggable & Timeoutable & ScreenshotOptions> | undefined
})
Cypress.Commands.addQuery('newQuery', function(arg) {
this // $ExpectType Command
arg // $ExpectType string
return () => 3
})
}
namespace CypressNowTest {
cy.now('get') // $ExpectType Promise<any> | ((subject: any) => any)
}
namespace CypressEnsuresTest {
Cypress.ensure.isType('', ['optional', 'element'], 'newQuery', cy) // $ExpectType void
Cypress.ensure.isElement('', 'newQuery', cy) // $ExpectType void
Cypress.ensure.isWindow('', 'newQuery', cy) // $ExpectType void
Cypress.ensure.isDocument('', 'newQuery', cy) // $ExpectType void
Cypress.ensure.isAttached('', 'newQuery', cy) // $ExpectType void
Cypress.ensure.isNotDisabled('', 'newQuery') // $ExpectType void
Cypress.ensure.isVisible('', 'newQuery') // $ExpectType void
}
namespace CypressLogsTest {
const log = Cypress.log({
$el: Cypress.$('body'),
name: 'MyCommand',
displayName: 'My Command',
message: ['foo', 'bar'],
consoleProps: () => {
return {
foo: 'bar',
}
},
})
.set('$el', Cypress.$('body'))
.set({ name: 'MyCommand' })
.snapshot()
.snapshot('before')
.snapshot('before', { next: 'after' })
log.get() // $ExpectType LogConfig
log.get('name') // $ExpectType string
log.get('$el') // $ExpectType JQuery<HTMLElement>
}
namespace CypressLocalStorageTest {
Cypress.LocalStorage.clear = function(keys) {
keys // $ExpectType string[] | undefined
}
}
namespace CypressItsTests {
cy.wrap({ foo: [1, 2, 3] })
.its('foo')
.each((s: number) => {
s
})
cy.wrap({ foo: 'bar' }).its('foo') // $ExpectType Chainable<string>
cy.wrap([1, 2]).its(1) // $ExpectType Chainable<number>
cy.wrap(['foo', 'bar']).its(1) // $ExpectType Chainable<string>
.then((s: string) => {
s
})
cy.wrap({ baz: { quux: '2' } }).its('baz.quux') // $ExpectType Chainable<any>
cy.wrap({ foo: 'bar' }).its('foo', { log: true }) // $ExpectType Chainable<string>
cy.wrap({ foo: 'bar' }).its('foo', { timeout: 100 }) // $ExpectType Chainable<string>
cy.wrap({ foo: 'bar' }).its('foo', { log: true, timeout: 100 }) // $ExpectType Chainable<string>
}
namespace CypressInvokeTests {
const returnsString = () => 'foo'
const returnsNumber = () => 42
cy.wrap({ a: returnsString }).invoke('a') // $ExpectType Chainable<string>
cy.wrap({ b: returnsNumber }).invoke('b') // $ExpectType Chainable<number>
cy.wrap({ b: returnsNumber }).invoke({ log: true }, 'b') // $ExpectType Chainable<number>
cy.wrap({ b: returnsNumber }).invoke({ timeout: 100 }, 'b') // $ExpectType Chainable<number>
cy.wrap({ b: returnsNumber }).invoke({ log: true, timeout: 100 }, 'b') // $ExpectType Chainable<number>
// challenging to define a more precise return type than string | number here
cy.wrap([returnsString, returnsNumber]).invoke(1) // $ExpectType Chainable<string | number>
// invoke through property path results in any
cy.wrap({ a: { fn: (x: number) => x * x } }).invoke('a.fn', 4) // $ExpectType Chainable<any>
// examples below are from previous attempt at typing `invoke`
// (see https://github.com/cypress-io/cypress/issues/4022)
// call methods on arbitrary objects with reasonable return types
cy.wrap({ fn: () => ({ a: 1 }) }).invoke("fn") // $ExpectType Chainable<{ a: number; }>
// call methods on dom elements with reasonable return types
cy.get('.trigger-input-range').invoke('val', 25) // $ExpectType Chainable<string | number | string[] | undefined>
}
cy.wrap({ foo: ['bar', 'baz'] })
.its('foo')
.then(([first, second]) => {
first // $ExpectType string
})
.spread((first: string, second: string) => {
first // $ExpectType string
// return first as string
})
.each((s: string) => {
s // $ExpectType string
})
.then(s => {
s // $ExpectType string[]
})
cy.get('.someSelector')
.each(($el, index, list) => {
$el // $ExpectType JQuery<HTMLElement>
index // $ExpectType number
list // $ExpectType HTMLElement[]
})
cy.wrap(['bar', 'baz'])
.spread((first, second) => {
first // $ExpectType any
})
describe('then', () => {
// https://github.com/cypress-io/cypress/issues/5575
it('should respect the return type of callback', () => {
// Expected type is verbose here because the function below matches 2 declarations.
// * then<S extends object | any[] | string | number | boolean>(fn: (this: ObjectLike, currentSubject: Subject) => S): Chainable<S>
// * then<S>(fn: (this: ObjectLike, currentSubject: Subject) => S): ThenReturn<Subject, S>
// For our purpose, it doesn't matter.
const result = cy.get('foo').then(el => el.attr('foo'))
result // $ExpectType Chainable<JQuery<HTMLElement>> | Chainable<string | JQuery<HTMLElement>>
const result2 = cy.get('foo').then(el => `${el}`)
result2 // $ExpectType Chainable<string>
const result3 = cy.get('foo').then({ timeout: 1234 }, el => el.attr('foo'))
result3 // $ExpectType Chainable<JQuery<HTMLElement>> | Chainable<string | JQuery<HTMLElement>>
const result4 = cy.get('foo').then({ timeout: 1234 }, el => `${el}`)
result4 // $ExpectType Chainable<string>
})
it('should have the correct type signature', () => {
cy.wrap({ foo: 'bar' })
.then(s => {
s // $ExpectType { foo: string; }
return s
})
.then(s => {
s // $ExpectType { foo: string; }
})
.then(s => s.foo)
.then(s => {
s // $ExpectType string
})
})
it('should have the correct type signature with options', () => {
cy.wrap({ foo: 'bar' })
.then({ timeout: 5000 }, s => {
s // $ExpectType { foo: string; }
return s
})
.then({ timeout: 5000 }, s => {
s // $ExpectType { foo: string; }
})
.then({ timeout: 5000 }, s => s.foo)
.then({ timeout: 5000 }, s => {
s // $ExpectType string
})
})
it('HTMLElement', () => {
cy.get('div')
.then(($div) => {
$div // $ExpectType JQuery<HTMLDivElement>
return $div[0]
})
.then(($div) => {
$div // $ExpectType JQuery<HTMLDivElement>
})
cy.get('div')
.then(($div) => {
$div // $ExpectType JQuery<HTMLDivElement>
return [$div[0]]
})
.then(($div) => {
$div // $ExpectType JQuery<HTMLDivElement>
})
cy.get('p')
.then(($p) => {
$p // $ExpectType JQuery<HTMLParagraphElement>
return $p[0]
})
.then({ timeout: 3000 }, ($p) => {
$p // $ExpectType JQuery<HTMLParagraphElement>
})
})
// https://github.com/cypress-io/cypress/issues/16669
it('any as default', () => {
cy.get('body')
.then(() => ({} as any))
.then(v => {
v // $ExpectType any
})
})
})
cy.wait(['@foo', '@bar'])
.then(([first, second]) => {
first // $ExpectType Interception<any, any>
})
cy.wait(1234) // $ExpectType Chainable<undefined>
cy.wrap('foo').wait(1234) // $ExpectType Chainable<string>
cy.wrap([{ foo: 'bar' }, { foo: 'baz' }])
.then(subject => {
subject // $ExpectType { foo: string; }[]
})
.then(([first, second]) => {
first // $ExpectType { foo: string; }
})
.then(subject => {
subject // $ExpectType { foo: string; }[]
})
.then(([first, second]) => {
return first.foo + second.foo
})
.then(subject => {
subject // $ExpectType string
})
cy.wrap([1, 2, 3]).each((num: number, i, array) => {
return new Cypress.Promise((resolve) => {
setTimeout(() => {
resolve()
}, num * 100)
})
})
cy.get('something').should('have.length', 1)
cy.stub().withArgs('').log(false).as('foo')
cy.spy().withArgs('').log(false).as('foo')
cy.get('something').as('foo', { type: 'static' })
cy.wrap('foo').then(subject => {
subject // $ExpectType string
return cy.wrap(subject)
}).then(subject => {
subject // $ExpectType string
})
cy.wrap('foo').then(subject => {
subject // $ExpectType string
return Cypress.Promise.resolve(subject)
}).then(subject => {
subject // $ExpectType string
})
cy.get('body').within(body => {
body // $ExpectType JQuery<HTMLBodyElement>
})
cy.get('body').within({ log: false }, body => {
body // $ExpectType JQuery<HTMLBodyElement>
})
cy.get('body').within(() => {
cy.get('body', { withinSubject: null }).then(body => {
body // $ExpectType JQuery<HTMLBodyElement>
})
})
cy
.get('body')
.then(() => {
return cy.wrap(undefined)
})
.then(subject => {
subject // $ExpectType undefined
})
namespace CypressAUTWindowTests {
cy.go(2).then((win) => {
win // $ExpectType AUTWindow
})
cy.reload().then((win) => {
win // $ExpectType AUTWindow
})
cy.visit('https://google.com').then(win => {
win // $ExpectType AUTWindow
})
cy.window().then(win => {
win // $ExpectType AUTWindow
})
}
namespace CypressOnTests {
Cypress.on('uncaught:exception', (error, runnable, promise) => {
error // $ExpectType Error
runnable // $ExpectType Runnable
promise // $ExpectType Promise<any> | undefined
})
cy.on('uncaught:exception', (error, runnable, promise) => {
error // $ExpectType Error
runnable // $ExpectType Runnable
promise // $ExpectType Promise<any> | undefined
})
// you can chain multiple callbacks
Cypress
.on('test:before:run', () => { })
.on('test:after:run', () => { })
.on('test:before:run:async', () => { })
cy
.on('window:before:load', () => { })
.on('command:start', () => { })
}
namespace CypressOnceTests {
Cypress.once('uncaught:exception', (error, runnable) => {
error // $ExpectType Error
runnable // $ExpectType Runnable
})
cy.once('uncaught:exception', (error, runnable) => {
error // $ExpectType Error
runnable // $ExpectType Runnable
})
}
namespace CypressOffTests {
Cypress.off('uncaught:exception', (error, runnable) => {
error // $ExpectType Error
runnable // $ExpectType Runnable
})
cy.off('uncaught:exception', (error, runnable) => {
error // $ExpectType Error
runnable // $ExpectType Runnable
})
}
namespace CypressFilterTests {
cy.get<HTMLDivElement>('#id')
.filter((index: number, element: HTMLDivElement) => {
index // $ExpectType number
element // $ExpectType HTMLDivElement
return true
})
}
namespace CypressScreenshotTests {
cy.screenshot().then((result) => {
result // $ExpectType undefined
})
cy.screenshot('example-name')
cy.screenshot('example', { log: false })
cy.screenshot({ log: false })
cy.screenshot({
log: true,
blackout: []
})
cy.screenshot('example', {
log: true,
blackout: []
})
cy.get<HTMLDivElement>('#id').screenshot('example-name', { log: false })
cy.get<HTMLDivElement>('#id').screenshot().then((result) => {
result // $ExpectType JQuery<HTMLDivElement>
})
}
namespace CypressShadowDomTests {
cy.get('my-component').shadow()
}
namespace CypressTriggerTests {
cy.get('something')
.trigger('click') // .trigger(eventName)
.trigger('click', 'center') // .trigger(eventName, position)
.trigger('click', { // .trigger(eventName, options)
arbitraryProperty: 0
})
.trigger('click', 0, 0) // .trigger(eventName, x, y)
.trigger('click', 'center', { // .trigger(eventName, position, options)
arbitraryProperty: 0
})
.trigger('click', 0, 0, { // .trigger(eventName, x, y, options)
arbitraryProperty: 0
})
}
namespace CypressClockTests {
// timestamp
cy.clock(new Date(2019, 3, 2).getTime(), ['Date'])
// timestamp shortcut
cy.clock(+ new Date(), ['Date'])
// Date object
cy.clock(new Date(2019, 3, 2))
// restoring the clock
cy.clock().then(clock => {
clock.restore()
})
// restoring the clock shortcut
cy.clock().invoke('restore')
// setting system time with no argument
cy.clock().then(clock => {
clock.setSystemTime()
})
// setting system time with timestamp
cy.clock().then(clock => {
clock.setSystemTime(1000)
})
// setting system time with date object
cy.clock().then(clock => {
clock.setSystemTime(new Date(2019, 3, 2))
})
// setting system time with no argument and shortcut
cy.clock().invoke('setSystemTime')
// setting system time with timestamp and shortcut
cy.clock().invoke('setSystemTime', 1000)
// setting system time with date object and shortcut
cy.clock().invoke('setSystemTime', new Date(2019, 3, 2))
}
namespace CypressContainsTests {
cy.contains('#app')
cy.contains('my text to find')
cy.contains('#app', 'my text to find')
cy.contains('#app', 'my text to find', { log: false, timeout: 100, matchCase: false, includeShadowDom: true })
cy.contains('my text to find', { log: false, timeout: 100, matchCase: false, includeShadowDom: true })
}
// https://github.com/cypress-io/cypress/pull/5574
namespace CypressLocationTests {
cy.location('path') // $ExpectError
cy.location('pathname') // $ExpectType Chainable<string>
}
// https://github.com/cypress-io/cypress/issues/17399
namespace CypressUrlTests {
cy.url({ decode: true }).should('contain', '사랑')
}
namespace CypressBrowserTests {
Cypress.isBrowser('chrome')// $ExpectType boolean
Cypress.isBrowser('firefox')// $ExpectType boolean
Cypress.isBrowser('edge')// $ExpectType boolean
Cypress.isBrowser('brave')// $ExpectType boolean
// does not error to allow for user supplied browsers
Cypress.isBrowser('safari')// $ExpectType boolean
Cypress.isBrowser({ channel: 'stable' })// $ExpectType boolean
Cypress.isBrowser({ family: 'chromium' })// $ExpectType boolean
Cypress.isBrowser({ name: 'chrome' })// $ExpectType boolean
Cypress.isBrowser({ family: 'foo' }) // $ExpectError
Cypress.isBrowser() // $ExpectError
}
namespace CypressDomTests {
const obj: any = {}
const el = {} as any as HTMLElement
const jel = {} as any as JQuery
const doc = {} as any as Document
Cypress.dom.wrap((x: number) => 'a') // $ExpectType JQuery<HTMLElement>
Cypress.dom.query('foo', el) // $ExpectType JQuery<HTMLElement>
Cypress.dom.unwrap(obj) // $ExpectType any
Cypress.dom.isDom(obj) // $ExpectType boolean
Cypress.dom.isType(el, 'foo') // $ExpectType boolean
Cypress.dom.isVisible(el) // $ExpectType boolean
Cypress.dom.isHidden(el) // $ExpectType boolean
Cypress.dom.isFocusable(el) // $ExpectType boolean
Cypress.dom.isTextLike(el) // $ExpectType boolean
Cypress.dom.isScrollable(el) // $ExpectType boolean
Cypress.dom.isFocused(el) // $ExpectType boolean
Cypress.dom.isDetached(el) // $ExpectType boolean
Cypress.dom.isAttached(el) // $ExpectType boolean
Cypress.dom.isSelector(el, 'foo') // $ExpectType boolean
Cypress.dom.isDescendent(el, el) // $ExpectType boolean
Cypress.dom.isElement(obj) // $ExpectType boolean
Cypress.dom.isDocument(obj) // $ExpectType boolean
Cypress.dom.isWindow(obj) // $ExpectType boolean
Cypress.dom.isJquery(obj) // $ExpectType boolean
Cypress.dom.isInputType(el, 'number') // $ExpectType boolean
Cypress.dom.stringify(el, 'foo') // $ExpectType string
Cypress.dom.getElements(jel) // $ExpectType JQuery<HTMLElement> | HTMLElement[]
Cypress.dom.getContainsSelector('foo', 'bar') // $ExpectType string
Cypress.dom.getContainsSelector('foo', 'bar', { matchCase: true }) // $ExpectType string
Cypress.dom.getFirstDeepestElement([el], 1) // $ExpectType HTMLElement
Cypress.dom.getWindowByElement(el) // $ExpectType HTMLElement | JQuery<HTMLElement>
Cypress.dom.getReasonIsHidden(el) // $ExpectType string
Cypress.dom.getFirstScrollableParent(el) // $ExpectType HTMLElement | JQuery<HTMLElement>
Cypress.dom.getFirstFixedOrStickyPositionParent(el) // $ExpectType HTMLElement | JQuery<HTMLElement>
Cypress.dom.getFirstStickyPositionParent(el) // $ExpectType HTMLElement | JQuery<HTMLElement>
Cypress.dom.getCoordsByPosition(1, 2) // $ExpectType number
Cypress.dom.getElementPositioning(el) // $ExpectType ElementPositioning
Cypress.dom.getElementAtPointFromViewport(doc, 1, 2) // $ExpectType Element | null
Cypress.dom.getElementCoordinatesByPosition(el, 'top') // $ExpectType ElementCoordinates
Cypress.dom.getElementCoordinatesByPositionRelativeToXY(el, 1, 2) // $ExpectType ElementPositioning
Cypress.dom.wrap() // $ExpectError
Cypress.dom.query(el, 'foo') // $ExpectError
Cypress.dom.unwrap() // $ExpectError
Cypress.dom.isDom() // $ExpectError
Cypress.dom.isType(el) // $ExpectError
Cypress.dom.isVisible('') // $ExpectError
Cypress.dom.isHidden('') // $ExpectError
Cypress.dom.isFocusable('') // $ExpectError
Cypress.dom.isTextLike('') // $ExpectError
Cypress.dom.isScrollable('') // $ExpectError
Cypress.dom.isFocused('') // $ExpectError
Cypress.dom.isDetached('') // $ExpectError
Cypress.dom.isAttached('') // $ExpectError
Cypress.dom.isSelector('', 'foo') // $ExpectError
Cypress.dom.isDescendent('', '') // $ExpectError
Cypress.dom.isElement() // $ExpectError
Cypress.dom.isDocument() // $ExpectError
Cypress.dom.isWindow() // $ExpectError
Cypress.dom.isJquery() // $ExpectError
Cypress.dom.isInputType('', 'number') // $ExpectError
Cypress.dom.stringify('', 'foo') // $ExpectError
Cypress.dom.getElements(el) // $ExpectError
Cypress.dom.getContainsSelector(el, 'bar') // $ExpectError
Cypress.dom.getContainsSelector('foo', 'bar', { invalid: false }) // $ExpectError
Cypress.dom.getFirstDeepestElement(el, 1) // $ExpectError
Cypress.dom.getWindowByElement('') // $ExpectError
Cypress.dom.getReasonIsHidden('') // $ExpectError
Cypress.dom.getFirstScrollableParent('') // $ExpectError
Cypress.dom.getFirstFixedOrStickyPositionParent('') // $ExpectError
Cypress.dom.getFirstStickyPositionParent('') // $ExpectError
Cypress.dom.getCoordsByPosition(1) // $ExpectError
Cypress.dom.getElementPositioning('') // $ExpectError
Cypress.dom.getElementAtPointFromViewport(el, 1, 2) // $ExpectError
Cypress.dom.getElementCoordinatesByPosition(doc, 'top') // $ExpectError
Cypress.dom.getElementCoordinatesByPositionRelativeToXY(doc, 1, 2) // $ExpectError
}
namespace CypressTestConfigOverridesTests {
// set config on a per-test basis
it('test', {
animationDistanceThreshold: 10,
defaultCommandTimeout: 6000,
env: {},
execTimeout: 6000,
includeShadowDom: true,
requestTimeout: 6000,
responseTimeout: 6000,
scrollBehavior: 'center',
taskTimeout: 6000,
viewportHeight: 200,
viewportWidth: 200,
waitForAnimations: false
}, () => { })
it('test', {
browser: { name: 'firefox' }
}, () => { })
it('test', {
browser: [{ name: 'firefox' }, { name: 'chrome' }]
}, () => { })
it('test', {
browser: 'firefox',
keystrokeDelay: 0
}, () => { })
it('test', {
browser: { foo: 'bar' }, // $ExpectError
}, () => { })
it('test', {
retries: null,
keystrokeDelay: 0
}, () => { })
it('test', {
retries: 3,
keystrokeDelay: false, // $ExpectError
}, () => { })
it('test', {
retries: {
runMode: 3,
openMode: null
}
}, () => { })
it('test', {
retries: {
runMode: 3,
}
}, () => { })
it('test', {
retries: { run: 3 } // $ExpectError
}, () => { })
it('test', {
testIsolation: false, // $ExpectError
}, () => { })
it.skip('test', {}, () => { })
it.only('test', {}, () => { })
xit('test', {}, () => { })
specify('test', {}, () => { })
specify.only('test', {}, () => { })
specify.skip('test', {}, () => { })
xspecify('test', {}, () => { })
// set config on a per-suite basis
describe('suite', {
browser: { family: 'firefox' },
keystrokeDelay: 0
}, () => { })
describe('suite', {
testIsolation: false,
}, () => { })
context('suite', {}, () => { })
describe('suite', {
browser: { family: 'firefox' },
keystrokeDelay: false // $ExpectError
foo: 'foo' // $ExpectError
}, () => { })
describe.only('suite', {}, () => { })
describe.skip('suite', {}, () => { })
xdescribe('suite', {}, () => { })
}
namespace CypressShadowTests {
cy
.get('.foo')
.shadow()
.find('.bar')
.click()
cy.get('.foo', { includeShadowDom: true }).click()
cy
.get('.foo')
.find('.bar', { includeShadowDom: true })
}
namespace CypressTaskTests {
cy.task<number>('foo') // $ExpectType Chainable<number>
cy.task<number>('foo').then((val) => {
val // $ExpectType number
})
cy.task('foo') // $ExpectType Chainable<unknown>
cy.task('foo').then((val) => {
val // $ExpectType unknown
})
}
namespace CypressSessionsTests {
cy.session('user', () => { })
cy.session({ name: 'bob' }, () => { })
cy.session('user', () => { }, {})
cy.session('user', () => { }, {
validate: () => { }
})
cy.session() // $ExpectError
cy.session('user') // $ExpectError
cy.session(null) // $ExpectError
cy.session('user', () => { }, {
validate: { foo: true } // $ExpectError
})
}
namespace CypressCurrentTest {
Cypress.currentTest.title // $ExpectType string
Cypress.currentTest.titlePath // $ExpectType string[]
Cypress.currentTest() // $ExpectError
}
namespace CypressKeyboardTests {
Cypress.Keyboard.defaults({
keystrokeDelay: 0
})
Cypress.Keyboard.defaults({
keystrokeDelay: 500
})
Cypress.Keyboard.defaults({
keystrokeDelay: false // $ExpectError
})
Cypress.Keyboard.defaults({
delay: 500 // $ExpectError
})
}
namespace CypressOriginTests {
cy.origin('example.com', () => { })
cy.origin('example.com', { args: {} }, (value: object) => { })
cy.origin('example.com', { args: { one: 1, key: 'value', bool: true } }, (value: { one: number, key: string, bool: boolean }) => { })
cy.origin('example.com', { args: [1, 'value', true] }, (value: Array<(number | string | boolean)>) => { })
cy.origin('example.com', { args: 'value' }, (value: string) => { })
cy.origin('example.com', { args: 1 }, (value: number) => { })
cy.origin('example.com', { args: true }, (value: boolean) => { })
cy.origin() // $ExpectError
cy.origin('example.com') // $ExpectError
cy.origin(true) // $ExpectError
cy.origin('example.com', {}) // $ExpectError
cy.origin('example.com', {}, {}) // $ExpectError
cy.origin('example.com', { args: ['value'] }, (value: boolean[]) => { }) // $ExpectError
cy.origin('example.com', {}, (value: undefined) => { }) // $ExpectError
}
namespace CypressGetCookiesTests {
cy.getCookies().then((cookies) => {
cookies // $ExpectType Cookie[]
})
cy.getCookies({ log: true })
cy.getCookies({ timeout: 10 })
cy.getCookies({ domain: 'localhost' })
cy.getCookies({ log: true, timeout: 10, domain: 'localhost' })
cy.getCookies({ log: 'true' }) // $ExpectError
cy.getCookies({ timeout: '10' }) // $ExpectError
cy.getCookies({ domain: false }) // $ExpectError
}
namespace CypressGetAllCookiesTests {
cy.getAllCookies().then((cookies) => {
cookies // $ExpectType Cookie[]
})
cy.getAllCookies({ log: true })
cy.getAllCookies({ timeout: 10 })
cy.getAllCookies({ log: true, timeout: 10 })
cy.getAllCookies({ log: 'true' }) // $ExpectError
cy.getAllCookies({ timeout: '10' }) // $ExpectError
cy.getAllCookies({ other: true }) // $ExpectError
}
namespace CypressGetCookieTests {
cy.getCookie('name').then((cookie) => {
cookie // $ExpectType Cookie | null
})
cy.getCookie('name', { log: true })
cy.getCookie('name', { timeout: 10 })
cy.getCookie('name', { domain: 'localhost' })
cy.getCookie('name', { log: true, timeout: 10, domain: 'localhost' })
cy.getCookie('name', { log: 'true' }) // $ExpectError
cy.getCookie('name', { timeout: '10' }) // $ExpectError
cy.getCookie('name', { domain: false }) // $ExpectError
}
namespace CypressSetCookieTests {
cy.setCookie('name', 'value').then((cookie) => {
cookie // $ExpectType Cookie
})
cy.setCookie('name', 'value', { log: true })
cy.setCookie('name', 'value', { timeout: 10 })
cy.setCookie('name', 'value', {
domain: 'localhost',
path: '/',
secure: true,
httpOnly: false,
expiry: 12345,
sameSite: 'lax',
})
cy.setCookie('name', 'value', {
domain: 'www.foobar.com',
path: '/',
secure: false,
httpOnly: false,
hostOnly: true,
sameSite: 'lax',
})
cy.setCookie('name', 'value', { log: true, timeout: 10, domain: 'localhost' })
cy.setCookie('name') // $ExpectError
cy.setCookie('name', 'value', { log: 'true' }) // $ExpectError
cy.setCookie('name', 'value', { timeout: '10' }) // $ExpectError
cy.setCookie('name', 'value', { domain: false }) // $ExpectError
cy.setCookie('name', 'value', { foo: 'bar' }) // $ExpectError
}
namespace CypressClearCookieTests {
cy.clearCookie('name').then((result) => {
result // $ExpectType null
})
cy.clearCookie('name', { log: true })
cy.clearCookie('name', { timeout: 10 })
cy.clearCookie('name', { domain: 'localhost' })
cy.clearCookie('name', { log: true, timeout: 10, domain: 'localhost' })
cy.clearCookie('name', { log: 'true' }) // $ExpectError
cy.clearCookie('name', { timeout: '10' }) // $ExpectError
cy.clearCookie('name', { domain: false }) // $ExpectError
}
namespace CypressClearCookiesTests {
cy.clearCookies().then((result) => {
result // $ExpectType null
})
cy.clearCookies({ log: true })
cy.clearCookies({ timeout: 10 })
cy.clearCookies({ domain: 'localhost' })
cy.clearCookies({ log: true, timeout: 10, domain: 'localhost' })
cy.clearCookies({ log: 'true' }) // $ExpectError
cy.clearCookies({ timeout: '10' }) // $ExpectError
cy.clearCookies({ domain: false }) // $ExpectError
}
namespace CypressClearAllCookiesTests {
cy.clearAllCookies().then((cookies) => {
cookies // $ExpectType null
})
cy.clearAllCookies({ log: true })
cy.clearAllCookies({ timeout: 10 })
cy.clearAllCookies({ log: true, timeout: 10 })
cy.clearAllCookies({ log: 'true' }) // $ExpectError
cy.clearAllCookies({ timeout: '10' }) // $ExpectError
cy.clearAllCookies({ other: true }) // $ExpectError
}
namespace CypressLocalStorageTests {
cy.getAllLocalStorage().then((result) => {
result // $ExpectType StorageByOrigin
})
cy.getAllLocalStorage({ log: false })
cy.getAllLocalStorage({ log: 'true' }) // $ExpectError
cy.clearAllLocalStorage().then((result) => {
result // $ExpectType null
})
cy.clearAllLocalStorage({ log: false })
cy.clearAllLocalStorage({ log: 'true' }) // $ExpectError
cy.getAllSessionStorage().then((result) => {
result // $ExpectType StorageByOrigin
})
cy.getAllSessionStorage({ log: false })
cy.getAllSessionStorage({ log: 'true' }) // $ExpectError
cy.clearAllSessionStorage().then((result) => {
result // $ExpectType null
})
cy.clearAllSessionStorage({ log: false })
cy.clearAllSessionStorage({ log: 'true' }) // $ExpectError
}
namespace CypressRetriesSpec {
Cypress.config('retries', {
openMode: 0,
runMode: 1
})
Cypress.config('retries', {
openMode: false,
runMode: false,
experimentalStrategy: "detect-flake-and-pass-on-threshold",
experimentalOptions: {
maxRetries: 2,
passesRequired: 2
}
})
Cypress.config('retries', {
openMode: false,
runMode: false,
experimentalStrategy: "detect-flake-but-always-fail",
experimentalOptions: {
maxRetries: 2,
stopIfAnyPassed: true
}
})
Cypress.config('retries', { openMode: false, runMode: true, experimentalStrategy: "detect-flake-and-pass-on-threshold", experimentalOptions: { maxRetries: 2 } }) // $ExpectError
Cypress.config('retries', { openMode: false, runMode: true, experimentalStrategy: "detect-flake-but-always-fail", experimentalOptions: { maxRetries: 2 } }) // $ExpectError
Cypress.config('retries', { openMode: false, runMode: true, experimentalStrategy: "detect-flake-and-pass-on-threshold", experimentalOptions: { passesRequired: 2 } }) // $ExpectError
Cypress.config('retries', { openMode: false, runMode: true, experimentalStrategy: "detect-flake-but-always-fail", experimentalOptions: { stopIfAnyPassed: true } }) // $ExpectError
}
namespace CypressTraversalTests {
cy.wrap({}).prevUntil('a') // $ExpectType Chainable<JQuery<HTMLAnchorElement>>
cy.wrap({}).prevUntil('#myItem') // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).prevUntil('span', 'a') // $ExpectType Chainable<JQuery<HTMLSpanElement>>
cy.wrap({}).prevUntil('#myItem', 'a') // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).prevUntil('div', 'a', { log: false, timeout: 100 }) // $ExpectType Chainable<JQuery<HTMLDivElement>>
cy.wrap({}).prevUntil('#myItem', 'a', { log: false, timeout: 100 }) // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).prevUntil('#myItem', 'a', { log: 'true' }) // $ExpectError
cy.wrap({}).nextUntil('a') // $ExpectType Chainable<JQuery<HTMLAnchorElement>>
cy.wrap({}).nextUntil('#myItem') // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).nextUntil('span', 'a') // $ExpectType Chainable<JQuery<HTMLSpanElement>>
cy.wrap({}).nextUntil('#myItem', 'a') // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).nextUntil('div', 'a', { log: false, timeout: 100 }) // $ExpectType Chainable<JQuery<HTMLDivElement>>
cy.wrap({}).nextUntil('#myItem', 'a', { log: false, timeout: 100 }) // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).nextUntil('#myItem', 'a', { log: 'true' }) // $ExpectError
cy.wrap({}).parentsUntil('a') // $ExpectType Chainable<JQuery<HTMLAnchorElement>>
cy.wrap({}).parentsUntil('#myItem') // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).parentsUntil('span', 'a') // $ExpectType Chainable<JQuery<HTMLSpanElement>>
cy.wrap({}).parentsUntil('#myItem', 'a') // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).parentsUntil('div', 'a', { log: false, timeout: 100 }) // $ExpectType Chainable<JQuery<HTMLDivElement>>
cy.wrap({}).parentsUntil('#myItem', 'a', { log: false, timeout: 100 }) // $ExpectType Chainable<JQuery<HTMLElement>>
cy.wrap({}).parentsUntil('#myItem', 'a', { log: 'true' }) // $ExpectError
}
namespace CypressRequireTests {
Cypress.require('lodash')
const anydep = Cypress.require('anydep')
anydep // $ExpectType any
const sinon = Cypress.require<sinon.SinonStatic>('sinon') as typeof import('sinon')
sinon // $ExpectType SinonStatic
const lodash = Cypress.require<_.LoDashStatic>('lodash')
lodash // $ExpectType LoDashStatic
Cypress.require() // $ExpectError
Cypress.require({}) // $ExpectError
Cypress.require(123) // $ExpectError
}
namespace CypressGlobalsTests {
Cypress
cy
expect
assert
window.Cypress
window.cy
window.expect
window.assert
globalThis.Cypress
globalThis.cy
globalThis.expect
globalThis.assert
}
| cypress/cli/types/tests/cypress-tests.ts/0 | {
"file_path": "cypress/cli/types/tests/cypress-tests.ts",
"repo_id": "cypress",
"token_count": 14973
} | 17 |
# npm
This directory contains packages that are both used internally inside the Cypress monorepo [`packages`](../packages) and also published independently on npm under the Cypress organization using the `@cypress` prefix. For example, `vite-dev-server` is published as `@cypress/vite-dev-server`.
These are automatically released based on [Semantic Version](https://semver.org) commit message prefixes (`feat`, `chore` etc). A package is automatically released when changes are merged into `develop`. You can read more about this process in [`CONTRIBUTING`](../CONTRIBUTING.md#committing-code).
| cypress/npm/README.md/0 | {
"file_path": "cypress/npm/README.md",
"repo_id": "cypress",
"token_count": 154
} | 18 |
module.exports = {
...require('../../.releaserc'),
}
| cypress/npm/cypress-schematic/.releaserc.js/0 | {
"file_path": "cypress/npm/cypress-schematic/.releaserc.js",
"repo_id": "cypress",
"token_count": 22
} | 19 |
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "cypress-schematics-generate-spec",
"title": "Cypress Generate Spec Options Schema",
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "Allows users to specify a custom filename.",
"visible": false
},
"path": {
"type": "string",
"format": "path",
"description": "The path where the spec will be created.",
"visible": false
},
"project": {
"type": "string",
"description": "The name of the project to create the spec in.",
"alias": "p",
"$default": {
"$source": "projectName"
}
},
"name": {
"type": "string",
"description": "The name of the spec.",
"alias": "n",
"$default": {
"$source": "argv",
"index": 0
},
"x-prompt": "What should the spec be named?"
},
"component": {
"type": "boolean",
"alias": "c",
"default": false,
"description": "When true, the spec created will be a component spec."
}
},
"required": [
"name"
]
} | cypress/npm/cypress-schematic/src/schematics/ng-generate/cypress-test/schema.json/0 | {
"file_path": "cypress/npm/cypress-schematic/src/schematics/ng-generate/cypress-test/schema.json",
"repo_id": "cypress",
"token_count": 490
} | 20 |
const fs = require('fs')
const path = require('path')
module.exports =
// eslint-disable-next-line no-restricted-syntax
Object.assign({}, ...fs.readdirSync(__dirname)
.filter((filename) => filename.endsWith('.js') && filename !== 'index.js')
.map((filename) => ({ [filename.replace(/\.js$/u, '')]: require(path.resolve(__dirname, filename)) })))
| cypress/npm/eslint-plugin-dev/lib/custom-rules/index.js/0 | {
"file_path": "cypress/npm/eslint-plugin-dev/lib/custom-rules/index.js",
"repo_id": "cypress",
"token_count": 124
} | 21 |
describe('outer', ()=>{
describe('some test', ()=>{
context('some test', ()=>{
it('some test', ()=>{
expect('foo').to.eq('bar')
})
return someFn()
})
})
})
| cypress/npm/eslint-plugin-dev/test/fixtures/no-return-before-pass.js/0 | {
"file_path": "cypress/npm/eslint-plugin-dev/test/fixtures/no-return-before-pass.js",
"repo_id": "cypress",
"token_count": 91
} | 22 |
// @ts-check
/// <reference types="cypress" />
describe('tests that use config object', () => {
it('still works @config', { baseUrl: 'http://localhost:8000' }, () => {
expect(Cypress.config('baseUrl')).to.equal('http://localhost:8000')
})
})
| cypress/npm/grep/cypress/e2e/config-spec.js/0 | {
"file_path": "cypress/npm/grep/cypress/e2e/config-spec.js",
"repo_id": "cypress",
"token_count": 84
} | 23 |
/// <reference types="cypress" />
import {
parseGrep,
parseTitleGrep,
parseFullTitleGrep,
parseTagsGrep,
shouldTestRun,
shouldTestRunTags,
shouldTestRunTitle,
} from '../../src/utils'
describe('utils', () => {
context('parseTitleGrep', () => {
it('grabs the positive title', () => {
const parsed = parseTitleGrep('hello w')
expect(parsed).to.deep.equal({
title: 'hello w',
invert: false,
})
})
it('trims the string', () => {
const parsed = parseTitleGrep(' hello w ')
expect(parsed).to.deep.equal({
title: 'hello w',
invert: false,
})
})
it('inverts the string', () => {
const parsed = parseTitleGrep('-hello w')
expect(parsed).to.deep.equal({
title: 'hello w',
invert: true,
})
})
it('trims the inverted the string', () => {
const parsed = parseTitleGrep(' -hello w ')
expect(parsed).to.deep.equal({
title: 'hello w',
invert: true,
})
})
it('returns null for undefined input', () => {
const parsed = parseTitleGrep()
expect(parsed).to.equal(null)
})
})
context('parseFullTitleGrep', () => {
it('returns list of title greps', () => {
const parsed = parseFullTitleGrep('hello; one; -two')
expect(parsed).to.deep.equal([
{ title: 'hello', invert: false },
{ title: 'one', invert: false },
{ title: 'two', invert: true },
])
})
})
context('parseTagsGrep', () => {
it('parses AND tags', () => {
// run only the tests with all 3 tags
const parsed = parseTagsGrep('@tag1+@tag2+@tag3')
expect(parsed).to.deep.equal([
// single OR part
[
// with 3 AND parts
{ tag: '@tag1', invert: false },
{ tag: '@tag2', invert: false },
{ tag: '@tag3', invert: false },
],
])
})
it('handles dashes in the tag', () => {
const parsed = parseTagsGrep('@smoke+@screen-b')
expect(parsed).to.deep.equal([
[
{ tag: '@smoke', invert: false },
{ tag: '@screen-b', invert: false },
],
])
})
it('parses OR tags spaces', () => {
// run tests with tag1 OR tag2 or tag3
const parsed = parseTagsGrep('@tag1 @tag2 @tag3')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: false }],
[{ tag: '@tag2', invert: false }],
[{ tag: '@tag3', invert: false }],
])
})
it('parses OR tags commas', () => {
// run tests with tag1 OR tag2 or tag3
const parsed = parseTagsGrep('@tag1,@tag2,@tag3')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: false }],
[{ tag: '@tag2', invert: false }],
[{ tag: '@tag3', invert: false }],
])
})
it('parses inverted tag', () => {
const parsed = parseTagsGrep('-@tag1')
expect(parsed).to.deep.equal([[{ tag: '@tag1', invert: true }]])
})
it('parses tag1 but not tag2 with space', () => {
const parsed = parseTagsGrep('@tag1 -@tag2')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: false }],
[{ tag: '@tag2', invert: true }],
])
})
it('forgives extra spaces', () => {
const parsed = parseTagsGrep(' @tag1 -@tag2 ')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: false }],
[{ tag: '@tag2', invert: true }],
])
})
it('parses tag1 but not tag2 with comma', () => {
const parsed = parseTagsGrep('@tag1,-@tag2')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: false }],
[{ tag: '@tag2', invert: true }],
])
})
it('filters out empty tags', () => {
const parsed = parseTagsGrep(',, @tag1,-@tag2,, ,, ,')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: false }],
[{ tag: '@tag2', invert: true }],
])
})
// TODO: would need to change the tokenizer
it.skip('parses tag1 but not tag2', () => {
const parsed = parseTagsGrep('@tag1-@tag2')
expect(parsed).to.deep.equal([
[
{ tag: '@tag1', invert: false },
{ tag: '@tag2', invert: true },
],
])
})
it('allows all tags to be inverted', () => {
const parsed = parseTagsGrep('--@tag1,--@tag2')
expect(parsed).to.deep.equal([
[{ tag: '@tag1', invert: true }, { tag: '@tag2', invert: true }],
])
})
})
context('parseGrep', () => {
// no need to exhaustively test the parsing
// since we want to confirm it works via test names
// and not through the implementation details of
// the parsed object
it('creates just the title grep', () => {
const parsed = parseGrep('hello w')
expect(parsed).to.deep.equal({
title: [
{
title: 'hello w',
invert: false,
},
],
tags: [],
})
})
it('creates object from the grep string only', () => {
const parsed = parseGrep('hello w')
expect(parsed).to.deep.equal({
title: [
{
title: 'hello w',
invert: false,
},
],
tags: [],
})
// check how the parsed grep works against specific tests
expect(shouldTestRun(parsed, 'hello w')).to.equal(true)
expect(shouldTestRun(parsed, 'hello no')).to.equal(false)
})
it('matches one of the titles', () => {
// also should trim each title
const parsed = parseGrep(' hello w; work 2 ')
expect(parsed).to.deep.equal({
title: [
{
title: 'hello w',
invert: false,
},
{
title: 'work 2',
invert: false,
},
],
tags: [],
})
// check how the parsed grep works against specific tests
expect(shouldTestRun(parsed, 'hello w')).to.equal(true)
expect(shouldTestRun(parsed, 'this work 2 works')).to.equal(true)
expect(shouldTestRun(parsed, 'hello no')).to.equal(false)
})
it('creates object from the grep string and tags', () => {
const parsed = parseGrep('hello w', '@tag1+@tag2+@tag3')
expect(parsed).to.deep.equal({
title: [
{
title: 'hello w',
invert: false,
},
],
tags: [
// single OR part
[
// with 3 AND parts
{ tag: '@tag1', invert: false },
{ tag: '@tag2', invert: false },
{ tag: '@tag3', invert: false },
],
],
})
// check how the parsed grep works against specific tests
expect(shouldTestRun(parsed, 'hello w'), 'needs tags').to.equal(false)
expect(shouldTestRun(parsed, 'hello no')).to.equal(false)
// not every tag is present
expect(shouldTestRun(parsed, ['@tag1', '@tag2'])).to.equal(false)
expect(shouldTestRun(parsed, ['@tag1', '@tag2', '@tag3'])).to.equal(true)
expect(
shouldTestRun(parsed, ['@tag1', '@tag2', '@tag3', '@tag4']),
).to.equal(true)
// title matches, but tags do not
expect(shouldTestRun(parsed, 'hello w', ['@tag1', '@tag2'])).to.equal(
false,
)
// tags and title match
expect(
shouldTestRun(parsed, 'hello w', ['@tag1', '@tag2', '@tag3']),
).to.equal(true)
})
})
context('shouldTestRunTags', () => {
// when the user types "used" string
// and the test has the given tags, make sure
// our parsing and decision logic computes the expected result
const shouldIt = (used, tags, expected) => {
const parsedTags = parseTagsGrep(used)
expect(
shouldTestRunTags(parsedTags, tags),
`"${used}" against "${tags}"`,
).to.equal(expected)
}
it('handles AND tags', () => {
shouldIt('smoke+slow', ['fast', 'smoke'], false)
shouldIt('smoke+slow', ['mobile', 'smoke', 'slow'], true)
shouldIt('smoke+slow', ['slow', 'extra', 'smoke'], true)
shouldIt('smoke+slow', ['smoke'], false)
})
it('handles OR tags', () => {
// smoke OR slow
shouldIt('smoke slow', ['fast', 'smoke'], true)
shouldIt('smoke', ['mobile', 'smoke', 'slow'], true)
shouldIt('slow', ['slow', 'extra', 'smoke'], true)
shouldIt('smoke', ['smoke'], true)
shouldIt('smoke', ['slow'], false)
})
it('handles invert tag', () => {
// should not run - we are excluding the "slow"
shouldIt('smoke+-slow', ['smoke', 'slow'], false)
shouldIt('mobile+-slow', ['smoke', 'slow'], false)
shouldIt('smoke -slow', ['smoke', 'fast'], true)
shouldIt('-slow', ['smoke', 'slow'], false)
shouldIt('-slow', ['smoke'], true)
// no tags in the test
shouldIt('-slow', [], true)
})
})
context('shouldTestRun', () => {
// a little utility function to parse the given grep string
// and apply the first argument in shouldTestRun
const checkName = (grep, grepTags) => {
const parsed = parseGrep(grep, grepTags)
expect(parsed).to.be.an('object')
return (testName, testTags = []) => {
expect(testName, 'test title').to.be.a('string')
expect(testTags, 'test tags').to.be.an('array')
return shouldTestRun(parsed, testName, testTags)
}
}
it('simple tag', () => {
const parsed = parseGrep('@tag1')
expect(shouldTestRun(parsed, 'no tag1 here')).to.be.false
expect(shouldTestRun(parsed, 'has @tag1 in the name')).to.be.true
})
it('with invert title', () => {
const t = checkName('-hello')
expect(t('no greetings')).to.be.true
expect(t('has hello world')).to.be.false
})
it('with invert option', () => {
const t = checkName(null, '-@tag1')
expect(t('no tags here')).to.be.true
expect(t('has tag1', ['@tag1'])).to.be.false
expect(t('has other tags', ['@tag2'])).to.be.true
})
it('with AND option', () => {
const t = checkName('', '@tag1+@tag2')
expect(t('no tag1 here')).to.be.false
expect(t('has only @tag1', ['@tag1'])).to.be.false
expect(t('has only @tag2', ['@tag2'])).to.be.false
expect(t('has both tags', ['@tag1', '@tag2'])).to.be.true
})
it('with OR option', () => {
const t = checkName(null, '@tag1 @tag2')
expect(t('no tag1 here')).to.be.false
expect(t('has only @tag1 in the name', ['@tag1'])).to.be.true
expect(t('has only @tag2 in the name', ['@tag2'])).to.be.true
expect(t('has @tag1 and @tag2 in the name', ['@tag1', '@tag2'])).to.be
.true
})
it('OR with AND option', () => {
const t = checkName(null, '@tag1 @tag2+@tag3')
expect(t('no tag1 here')).to.be.false
expect(t('has only @tag1 in the name', ['@tag1'])).to.be.true
expect(t('has only @tag2 in the name', ['@tag2'])).to.be.false
expect(t('has only @tag2 in the name and also @tag3', ['@tag2', '@tag3']))
.to.be.true
expect(
t('has @tag1 and @tag2 and @tag3 in the name', [
'@tag1',
'@tag2',
'@tag3',
]),
).to.be.true
})
it('Multiple invert strings and a simple one', () => {
const t = checkName('-name;-hey;number')
expect(t('number should only be matches without a n-a-m-e')).to.be.true
expect(t('number can\'t be name')).to.be.false
expect(t('The man needs a name')).to.be.false
expect(t('number hey name')).to.be.false
expect(t('numbers hey name')).to.be.false
expect(t('number hsey nsame')).to.be.true
expect(t('This wont match')).to.be.false
})
it('Only inverted strings', () => {
const t = checkName('-name;-hey')
expect(t('I\'m matched')).to.be.true
expect(t('hey! I\'m not')).to.be.false
expect(t('My name is weird')).to.be.false
})
})
context('parseFullTitleGrep', () => {
const shouldIt = (search, testName, expected) => {
const parsed = parseFullTitleGrep(search)
expect(
shouldTestRunTitle(parsed, testName),
`"${search}" against title "${testName}"`,
).to.equal(expected)
}
it('passes for substring', () => {
shouldIt('hello w', 'hello world', true)
shouldIt('-hello w', 'hello world', false)
})
})
})
describe('plugin', () => {
context('excludeSpecPattern', () => {
it('supports an array value', () => {
cy.task('grep', {
excludeSpecPattern: ['**/test2.spec.js', '**/test3.spec.js'],
specPattern: '**/*.spec.js',
env: {
grepTags: 'smoke',
grepFilterSpecs: true,
},
}).then((config) => {
expect(config.specPattern.length).to.equal(1)
expect(config.specPattern[0]).to.contain('test1.spec.js')
})
})
it('supports a string value', () => {
cy.task('grep', {
excludeSpecPattern: '**/test2.spec.js',
specPattern: '**/*.spec.js',
env: {
grepTags: 'smoke',
grepFilterSpecs: true,
},
}).then((config) => {
expect(config.specPattern.length).to.equal(2)
expect(config.specPattern[0]).to.contain('test1.spec.js')
expect(config.specPattern[1]).to.contain('test3.spec.js')
})
})
})
})
| cypress/npm/grep/cypress/e2e/unit.js/0 | {
"file_path": "cypress/npm/grep/cypress/e2e/unit.js",
"repo_id": "cypress",
"token_count": 6160
} | 24 |
{
"hello world: burning 1 of 3": "passed",
"hello world: burning 2 of 3": "passed",
"hello world: burning 3 of 3": "passed",
"works": "pending",
"works 2 @tag1": "pending",
"works 2 @tag1 @tag2": "pending",
"works @tag2": "pending"
}
| cypress/npm/grep/expects/hello-burn.json/0 | {
"file_path": "cypress/npm/grep/expects/hello-burn.json",
"repo_id": "cypress",
"token_count": 99
} | 25 |
{
"hello world": "pending",
"works": "pending",
"works 2 @tag1": "pending",
"works 2 @tag1 @tag2": "passed",
"works @tag2": "pending"
}
| cypress/npm/grep/expects/tag1-and-tag2.json/0 | {
"file_path": "cypress/npm/grep/expects/tag1-and-tag2.json",
"repo_id": "cypress",
"token_count": 64
} | 26 |
# @cypress/puppeteer [beta]
Utilize [Puppeteer's browser API](https://pptr.dev/api) within Cypress with a single command.
> This plugin is in public beta, so we'd love to get your feedback to improve it. Please leave any feedback you have in [this discussion](https://github.com/cypress-io/cypress/discussions/28410).
# Table of Contents
- [Installation](#installation)
- [Compatibility](#compatibility)
- [Usage](#usage)
- [API](#api)
- [Examples](#examples)
- [Contributing](#contributing)
- [Changelog](./CHANGELOG.md)
# Installation
## npm
```sh
npm install --save-dev @cypress/puppeteer
```
## yarn
```sh
yarn add --dev @cypress/puppeteer
```
## With TypeScript
Add the following in `tsconfig.json`:
```json
{
"compilerOptions": {
"types": ["cypress", "@cypress/puppeteer/support"]
}
}
```
## Compatibility
`@cypress/puppeteer` requires Cypress version 13.6.0 or greater.
Only Chromium-based browsers (e.g. Chrome, Chromium, Electron) are supported.
## Usage
`@cypress/puppeteer` is set up in your Cypress config and support file, then executed in your spec. See [API](#api) and [Examples](#examples) below for more details.
While the `cy.puppeteer()` command is executed in the browser, the majority of the Puppeteer execution is run in the Node process via your Cypress config. You pass a string message name to `cy.puppeteer()` that indicates which message handler to execute in the Cypress config. This is similar to how [cy.task()](on.cypress.io/task) operates.
In your Cypress config (e.g. `cypress.config.ts`):
```typescript
import { setup } from '@cypress/puppeteer'
export default defineConfig({
e2e: {
setupNodeEvents (on) {
setup({
on,
onMessage: {
async myMessageHander (browser) {
// Utilize the Puppeteer browser instance and the Puppeteer API to interact with and automate the browser
},
},
})
},
},
}
```
In your support file (e.g. `cypress/support/e2e.ts`):
```typescript
import '@cypress/puppeteer/support'
```
In your spec (e.g. `spec.cy.ts`):
```typescript
it('switches to and tests a new tab', () => {
cy.visit('/')
cy.get('button').click() // opens a new tab
cy
.puppeteer('myMessageHander')
.should('equal', 'You said: Hello from Page 1')
})
```
## API
### Cypress Config - setup
This sets up `@cypress/puppeteer` message handlers that run Puppeteer browser automation.
```typescript
setup(options)
```
#### Options
- `on` _required_: The `on` event registration function provided by `setupNodeEvents`
- `onMessage` _required_: An object with string keys and function values (see more details [below](#onmessage))
- `puppeteer` _optional_: The `puppeteer` library imported from `puppeteer-core`, overriding the default version of `puppeteer-core` used by this plugin
##### onMessage
The keys provided in this are used to invoke their corresponding functions by calling `cy.puppeteer(key)` in your Cypress test.
The functions should contain Puppeteer code for automating the browser. The code is executed within Node.js and not within the browser, so Cypress commands and DOM APIs cannot be utilized.
The functions receive the following arguments:
###### browser
A [puppeteer browser instance](https://pptr.dev/api/puppeteer.browser) connected to the Cypress-launched browser.
###### ...args
The rest of the arguments are any de-serialized arguments passed to the `cy.puppeteer()` command from your Cypress test.
### Cypress Config - retry
This is a utility function provided to aid in retrying actions that may initially fail.
```typescript
retry(functionToRetry[, options])
```
#### functionToRetry
_required_
A function that will run and retry if an error is thrown. If an error is not thrown, `retry` will return the value returned by this function.
The function will continue to run at the default or configured interval until the default or configured timeout, at which point `retry` will throw an error and cease retrying this function.
#### Options
_optional_
- `timeout` _optional_: The total time in milliseconds during which to attempt retrying the function. Default: `4000ms`
- `delayBetweenTries` _optional_: The time to wait between retries. Default: `200ms`
### Cypress Spec - cy.puppeteer()
```typescript
cy.puppeteer(messageName[, ...args])
```
#### messageName
_required_
A string matching one of the keys passed to the `onMessage` option of `setup` in your Cypress config.
#### ...args
_optional_
Values that will be passed to the message handler. These values must be JSON-serializable.
Example:
```typescript
// spec
cy.puppeteer('testNewTab', 'value 1', 42, [true, false])
// Cypress config
setup({
on,
onMessage: {
testNewTab (browser, stringArg, numberArg, arrayOfBooleans) {
// stringArg === 'value 1'
// numberArg === 42
// arrayOfBooleans[0] === true / arrayOfBooleans[1] === false
}
}
})
```
## Examples
These examples can be found and run in the [Cypress tests of this package](./cypress) with this project's [cypress.config.ts](./cypress.config.ts).
While these examples use tabs, they could just as easily apply to windows. Tabs and windows are essentially the same things as far as Puppeteer is concerned and encapsulated by instances of the [Page class](https://pptr.dev/api/puppeteer.page/).
### Switching to a new tab
This example demonstrates the following:
- Switching to a tab opened by an action in the Cypress test
- Getting the page instance via Puppeteer utilizing the `retry` function
- Getting page references and content via puppeteer
- Passing that content back to be asserted on in Cypress
_spec.cy.ts_
```typescript
it('switches to a new tab', () => {
cy.visit('/cypress/fixtures/page-1.html')
cy.get('input').type('Hello from Page 1')
cy.get('button').click() // Triggers a new tab to open
cy
.puppeteer('switchToTabAndGetContent')
.should('equal', 'You said: Hello from Page 1')
})
```
_cypress.config.ts_
```typescript
import { defineConfig } from 'cypress'
import type { Browser as PuppeteerBrowser, Page } from 'puppeteer-core'
import { setup, retry } from '@cypress/puppeteer'
export default defineConfig({
e2e: {
setupNodeEvents (on) {
setup({
on,
onMessage: {
async switchToTabAndGetContent (browser: PuppeteerBrowser) {
// In this message handler, we utilize the Puppeteer API to interact with the browser and the new tab that our Cypress tests has opened
// Utilize the retry since the page may not have opened and loaded by the time this runs
const page = await retry<Promise<Page>>(async () => {
// The browser will (eventually) have 2 tabs open: the Cypress tab and the newly opened tab
// In Puppeteer, tabs and windows are called pages
const pages = await browser.pages()
// Try to find the page we want to interact with
const page = pages.find((page) => page.url().includes('page-2.html'))
// If we can't find the page, it probably hasn't loaded yet, so throw an error to signal that this function should retry
if (!page) throw new Error('Could not find page')
// Otherwise, return the page instance and it will be returned by the `retry` function itself
return page
})
// Cypress will maintain focus on the Cypress tab within the browser. It's generally a good idea to bring the page to the front to interact with it.
await page.bringToFront()
const paragraph = (await page.waitForSelector('p'))!
const paragraphText = await page.evaluate((el) => el.textContent, paragraph)
// Clean up any references before finishing up
paragraph.dispose()
await page.close()
// Return the paragraph text and it will be the value yielded by the `cy.puppeteer()` invocation in the spec
return paragraphText
},
},
})
},
},
})
```
### Creating a new tab
This example demonstrates the following:
- Passing a non-default version of puppeteer to `@cypress/puppeteer`
- Passing arguments from `cy.puppeteer()` to the message handler
- Creating a new tab and visiting a page via Puppeteer
- Getting page references and content via puppeteer
- Passing that content back to be asserted on in Cypress
_spec.cy.ts_
```typescript
it('creates a new tab', () => {
cy.visit('/cypress/fixtures/page-3.html')
// We get a dynamic value from the page and pass it through to the puppeteer
// message handler
cy.get('#message').invoke('text').then((message) => {
cy.puppeteer('createTabAndGetContent', message)
.should('equal', 'I approve this message: Cypress and Puppeteer make a great combo')
})
})
```
_cypress.config.ts_
```typescript
import { defineConfig } from 'cypress'
import puppeteer, { Browser as PuppeteerBrowser, Page } from 'puppeteer-core'
import { setup, retry } from '@cypress/puppeteer'
export default defineConfig({
e2e: {
setupNodeEvents (on) {
setup({
on,
// Pass in your own version of puppeteer to be used instead of the default one
puppeteer,
onMessage: {
async createTabAndGetContent (browser: PuppeteerBrowser, text: string) {
// In this message handler, we utilize the Puppeteer API to interact with the browser, creating a new tab and getting its content
// This will create a new tab within the Cypress-launched browser
const page = await browser.newPage()
// Text comes from the test invocation of `cy.puppeteer()`
await page.goto(`http://localhost:8000/cypress/fixtures/page-4.html?text=${text}`)
const paragraph = (await page.waitForSelector('p'))!
const paragraphText = await page.evaluate((el) => el.textContent, paragraph)
// Clean up any references before finishing up
paragraph.dispose()
await page.close()
// Return the paragraph text and it will be the value yielded by the `cy.puppeteer()` invocation in the spec
return paragraphText
},
},
})
},
},
})
```
## Troubleshooting
### Error: Cannot communicate with the Cypress Chrome extension. Ensure the extension is enabled when using the Puppeteer plugin.
If you receive this error in your command log, the Puppeteer plugin was unable to communicate with the Cypress extension. This extension is necessary in order to re-activate the main Cypress tab after a Puppeteer command, when running in open mode.
* Ensure this extension is enabled in the instance of Chrome that Cypress launches by visiting chrome://extensions/
* Ensure the Cypress extension is allowed by your company's security policy by its extension id, `caljajdfkjjjdehjdoimjkkakekklcck`
## Contributing
Build the TypeScript files:
```shell
yarn build
```
Watch the TypeScript files and rebuild on file change:
```shell
yarn watch
```
Open Cypress tests:
```shell
yarn cypress:open
```
Run Cypress tests once:
```shell
yarn cypress:run
```
Run all unit tests once:
```shell
yarn test
```
Run unit tests in watch mode:
```shell
yarn test-watch
```
## [Changelog](./CHANGELOG.md)
| cypress/npm/puppeteer/README.md/0 | {
"file_path": "cypress/npm/puppeteer/README.md",
"repo_id": "cypress",
"token_count": 3846
} | 27 |
Cypress.Commands.add('puppeteer', (name, ...args) => {
Cypress.log({
name: 'puppeteer',
message: name,
})
cy.task('__cypressPuppeteer__', { name, args }, { log: false }).then((result: any) => {
if (result && result.__error__) {
throw new Error(`cy.puppeteer() failed with the following error:\n> ${result.__error__.message || result.__error__}`)
}
return result
})
})
| cypress/npm/puppeteer/src/support/index.ts/0 | {
"file_path": "cypress/npm/puppeteer/src/support/index.ts",
"repo_id": "cypress",
"token_count": 161
} | 28 |
/// <reference types="cypress" />
import React from 'react'
import { mount } from '@cypress/react'
import { Counter } from './counter.jsx'
/* eslint-env mocha */
describe('Counter with access', () => {
it('works', () => {
mount(<Counter />)
cy.contains('count: 0')
.click()
.contains('count: 1')
.click()
.contains('count: 2')
})
it('allows access via reference', () => {
mount(<Counter />)
// the window.counter was set from the Counter's constructor
cy.window()
.should('have.property', 'counter')
.its('state')
.should('deep.equal', { count: 0 })
// let's change the state of the component
cy.window()
.its('counter')
.invoke('setState', {
count: 101,
})
// the UI should update to reflect the new count
cy.contains('count: 101').should('be.visible')
})
})
| cypress/npm/react/cypress/component/advanced/app-action-example/counter.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/advanced/app-action-example/counter.cy.jsx",
"repo_id": "cypress",
"token_count": 318
} | 29 |
// example from https://reactjs.org/docs/hooks-overview.html
import React, { useState, useEffect } from 'react'
export default function Counter2WithHooks () {
const [count, setCount] = useState(0)
useEffect(() => {
document.title = `You clicked ${count} times`
})
return (
<div>
<p>You clicked {count} times</p>
<button id="increment" onClick={() => setCount(count + 1)}>
Click me
</button>
</div>
)
}
| cypress/npm/react/cypress/component/advanced/hooks/counter2-with-hooks.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/advanced/hooks/counter2-with-hooks.jsx",
"repo_id": "cypress",
"token_count": 175
} | 30 |
import React from 'react'
// use named import "get" from the module
import { get } from 'axios'
export class Users extends React.Component {
constructor (props) {
super(props)
this.state = {
users: [],
}
}
componentDidMount () {
get('https://jsonplaceholder.cypress.io/users?_limit=3').then((response) => {
// JSON responses are automatically parsed.
this.setState({
users: response.data,
})
})
}
render () {
return (
<div>
{this.state.users.map((user) => (
<li key={user.id}>
<strong>{user.id}</strong> - {user.name}
</li>
))}
</div>
)
}
}
| cypress/npm/react/cypress/component/advanced/mocking-axios/2-users-named.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/advanced/mocking-axios/2-users-named.jsx",
"repo_id": "cypress",
"token_count": 303
} | 31 |
# React Router v6
We are testing the navigation in the [app.jsx](app.jsx) when it is surrounded by a React Router from [react-router-dom](https://github.com/ReactTraining/react-router#readme)
- [spec.cy.jsx](spec.cy.jsx) uses `BrowserRouter`
- [in-memory.cy.jsx](in-memory.cy.jsx) uses `MemoryRouter`

| cypress/npm/react/cypress/component/advanced/react-router-v6/README.md/0 | {
"file_path": "cypress/npm/react/cypress/component/advanced/react-router-v6/README.md",
"repo_id": "cypress",
"token_count": 129
} | 32 |
import React from 'react'
import { mount } from '@cypress/react'
// test retries from
// https://github.com/cypress-io/cypress/pull/3968
// you can skip the tests if there is no retries feature
const describeOrSkip = Cypress.getTestRetries ? describe : describe.skip
describeOrSkip('Test', () => {
const Hello = () => {
// this is how you can get the current retry number
// attempt 1: (first test execution) retry = 0
// attempt 2: (second test execution) retry = 1
// attempt 3: retry = 2,
// etc
const n = cy.state('test').currentRetry
? cy.state('test').currentRetry()
: 0
return <div>retry {n}</div>
}
it('does not retry', { retries: 0 }, () => {
mount(<Hello />)
cy.contains('retry 0')
// now let's fail the test - it won't retry it
// enable manually to observe
// cy.contains('retry 1')
})
it('retries', { retries: 3 }, () => {
mount(<Hello />)
// now let's fail the test - it will retry several times and pass
cy.contains('retry 3', { timeout: 1500 })
})
})
| cypress/npm/react/cypress/component/advanced/test-retries/spec.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/advanced/test-retries/spec.cy.jsx",
"repo_id": "cypress",
"token_count": 383
} | 33 |
body {
font: 14px 'Century Gothic', Futura, sans-serif;
margin: 20px;
}
ol,
ul {
padding-left: 30px;
}
.board-row:after {
clear: both;
content: '';
display: table;
}
.status {
margin-bottom: 10px;
}
.square {
background: #fff;
border: 1px solid #999;
float: left;
font-size: 24px;
font-weight: bold;
line-height: 34px;
height: 34px;
margin-right: -1px;
margin-top: -1px;
padding: 0;
text-align: center;
width: 34px;
}
.square:focus {
outline: none;
}
.kbd-navigation .square:focus {
background: #ddd;
}
.game {
display: flex;
flex-direction: row;
}
.game-info {
margin-left: 20px;
}
| cypress/npm/react/cypress/component/advanced/tutorial/tic-tac-toe.css/0 | {
"file_path": "cypress/npm/react/cypress/component/advanced/tutorial/tic-tac-toe.css",
"repo_id": "cypress",
"token_count": 275
} | 34 |
/// <reference types="cypress" />
import React from 'react'
import { mount } from '@cypress/react'
import styles from './Button.module.css'
import { Button } from './Button.jsx'
describe('Button', () => {
it('renders orange styles', () => {
mount(<Button name="Orange" orange />)
cy.get('div > button')
.parent()
.should('have.class', styles.orange)
.find('button')
.should('have.css', 'background-color', 'rgb(245, 146, 62)')
})
})
| cypress/npm/react/cypress/component/basic/css-modules/css-modules-orange-button.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/basic/css-modules/css-modules-orange-button.cy.jsx",
"repo_id": "cypress",
"token_count": 167
} | 35 |
import React from 'react'
import { mount } from '@cypress/react'
const Login = () => {
return (
<div>
<div>Login by clicking below</div>
<a href="/foo">click me</a>
</div>
)
}
describe('full navigation', () => {
it('should not happen', () => {
mount(<Login />)
const clicked = cy.stub()
cy.get('a').invoke('on', 'click', (e) => e.preventDefault() || clicked())
cy.get('a').click()
cy.wrap(clicked).should('have.been.calledOnce')
})
})
| cypress/npm/react/cypress/component/basic/full-navigation.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/basic/full-navigation.cy.jsx",
"repo_id": "cypress",
"token_count": 195
} | 36 |
/// <reference types="cypress" />
import Game, { Board, calculateWinner } from './game.jsx'
import React from 'react'
import { mount } from '@cypress/react'
import './tic-tac-toe.css'
// for now need a constructor, otherwise getting "Weak map" key
const BoardWrap = ({ squares, onClick }) => {
return (
<div className="game">
<div className="game-board">
<Board squares={squares} onClick={onClick} />
</div>
</div>
)
}
beforeEach(() => {
cy.viewport(400, 200)
})
it('renders empty Board', () => {
const squares = Array(9).fill(null)
const onClick = cy.stub()
mount(<BoardWrap squares={squares} onClick={onClick} />)
cy.get('.board-row')
.eq(0)
.find('.square')
.eq(0)
.click()
.then(() => {
expect(onClick).to.have.been.calledWith(0)
})
})
it('renders Board with a few squares filled', () => {
const squares = Array(9).fill(null)
squares[0] = 'X'
squares[1] = 'O'
mount(<BoardWrap squares={squares} />)
cy.get('.board-row')
.eq(0)
.find('.square')
.eq(0)
.should('have.text', 'X')
cy.get('.board-row')
.eq(0)
.find('.square')
.eq(1)
.should('have.text', 'O')
})
it('plays the game', () => {
mount(<Game />)
cy.contains('.game-info', 'Next player: X').should('be.visible')
cy.get('.board-row')
.eq(0)
.find('.square')
.eq(0)
.click()
cy.get('.board-row')
.eq(1)
.find('.square')
.eq(0)
.click()
cy.get('.board-row')
.eq(0)
.find('.square')
.eq(1)
.click()
cy.get('.board-row')
.eq(1)
.find('.square')
.eq(1)
.click()
// X finishes the first row
cy.get('.board-row')
.eq(0)
.find('.square')
.eq(2)
.click()
cy.contains('.game-info', 'Winner: X').should('be.visible')
// history of moves
cy.get('ol li')
.should('have.length', 6)
.first()
.should('have.text', 'Go to game start')
.click()
})
context('calculateWinner', () => {
// we can unit test our winner calculation function!
it('returns null for empty board', () => {
const squares = Array(9).fill(null)
const winner = calculateWinner(squares)
expect(winner).to.be.null
})
it('returns X for first row of X', () => {
const squares = ['X', 'X', 'X']
const winner = calculateWinner(squares)
expect(winner).to.equal('X')
})
it('returns O for second row of O', () => {
// preserve our Tic-Tac-Toe board formatting
// prettier-ignore
const squares = [
'X', 'X', null,
'O', 'O', 'O',
null, null, 'X',
]
const winner = calculateWinner(squares)
expect(winner).to.equal('O')
})
it('returns O for second row of O', () => {
// preserve our Tic-Tac-Toe board formatting
// prettier-ignore
const squares = [
'X', 'X', null,
'O', 'O', 'O',
null, null, 'X',
]
const winner = calculateWinner(squares)
expect(winner).to.equal('O')
})
it('returns X for diagonal', () => {
const _ = null
const O = 'O'
const X = 'X'
// preserve our Tic-Tac-Toe board formatting
// prettier-ignore
const squares = [
_, _, X,
O, X, O,
X, _, O,
]
const winner = calculateWinner(squares)
expect(winner).to.equal(X)
})
})
| cypress/npm/react/cypress/component/basic/react-tutorial/game.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/basic/react-tutorial/game.cy.jsx",
"repo_id": "cypress",
"token_count": 1332
} | 37 |
/// <reference types="cypress" />
import React, { useLayoutEffect, useEffect } from 'react'
import ReactDom from 'react-dom'
import { mount, getContainerEl } from '@cypress/react'
it('should not run unmount effect cleanup when rerendering', () => {
const layoutEffectCleanup = cy.stub()
const effectCleanup = cy.stub()
const Component = ({ input }) => {
useLayoutEffect(() => {
return layoutEffectCleanup
}, [input])
useEffect(() => {
return effectCleanup
}, [])
return <div>{input}</div>
}
mount(<Component input="0" />).then(({ rerender }) => {
expect(layoutEffectCleanup).to.have.been.callCount(0)
expect(effectCleanup).to.have.been.callCount(0)
rerender(<Component input="0" />).then(() => {
expect(layoutEffectCleanup).to.have.been.callCount(0)
expect(effectCleanup).to.have.been.callCount(0)
})
rerender(<Component input="1" />).then(() => {
expect(layoutEffectCleanup).to.have.been.callCount(1)
expect(effectCleanup).to.have.been.callCount(0)
})
})
})
it('should run unmount effect cleanup when unmounting', () => {
const layoutEffectCleanup = cy.stub()
const effectCleanup = cy.stub()
const Component = ({ input }) => {
useLayoutEffect(() => {
return layoutEffectCleanup
}, [])
useEffect(() => {
return effectCleanup
}, [])
return <div>{input}</div>
}
mount(<Component input="0" />).then(({ rerender }) => {
expect(layoutEffectCleanup).to.have.been.callCount(0)
expect(effectCleanup).to.have.been.callCount(0)
rerender(<Component input="1" />).then(() => {
expect(layoutEffectCleanup).to.have.been.callCount(0)
expect(effectCleanup).to.have.been.callCount(0)
})
cy
.then(() => ReactDom.unmountComponentAtNode(getContainerEl()))
.then(() => {
expect(layoutEffectCleanup).to.have.been.callCount(1)
expect(effectCleanup).to.have.been.callCount(1)
})
})
})
| cypress/npm/react/cypress/component/basic/rerender/effects.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/basic/rerender/effects.cy.jsx",
"repo_id": "cypress",
"token_count": 749
} | 38 |
/// <reference types="cypress" />
import Comp from './comp.jsx'
import React from 'react'
import { mount, unmount } from '@cypress/react'
it('calls callbacks on mount and unmount', () => {
const onMount = cy.stub()
const onUnmount = cy.stub()
// mount is an async call
mount(<Comp onMount={onMount} onUnmount={onUnmount} />)
cy.then(() => {
expect(onMount).to.have.been.calledOnce
expect(onUnmount).to.have.not.been.called
})
cy.contains('Component with').should('be.visible')
let stub = cy.stub()
try {
unmount()
} catch (e) {
expect(e.message).to.eq('`unmount` is no longer supported.')
stub()
}
expect(stub).to.have.been.calledOnce
})
| cypress/npm/react/cypress/component/basic/unmount/comp.cy.jsx/0 | {
"file_path": "cypress/npm/react/cypress/component/basic/unmount/comp.cy.jsx",
"repo_id": "cypress",
"token_count": 257
} | 39 |
{
"name": "@cypress/react",
"version": "0.0.0-development",
"description": "Test React components using Cypress",
"main": "dist/cypress-react.cjs.js",
"scripts": {
"build": "rimraf dist && rollup -c rollup.config.mjs",
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
"check-ts": "tsc --noEmit",
"cy:open": "node ../../scripts/cypress.js open --component",
"cy:open:debug": "node --inspect-brk ../../scripts/start.js --component-testing --run-project ${PWD}",
"cy:run": "node ../../scripts/cypress.js run --component",
"cy:run:debug": "node --inspect-brk ../../scripts/start.js --component-testing --run-project ${PWD}",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
"test": "yarn cy:run",
"watch": "yarn build --watch --watch.exclude ./dist/**/*"
},
"devDependencies": {
"@cypress/mount-utils": "0.0.0-development",
"@types/semver": "7.5.0",
"@vitejs/plugin-react": "4.0.0",
"axios": "0.21.2",
"cypress": "0.0.0-development",
"prop-types": "15.7.2",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-router": "6.0.0-alpha.1",
"react-router-dom": "6.0.0-alpha.1",
"semver": "^7.5.3",
"typescript": "~5.4.5",
"vite": "4.5.2",
"vite-plugin-require-transform": "1.0.12"
},
"peerDependencies": {
"@types/react": "^16.9.16 || ^17.0.0",
"cypress": "*",
"react": "^=16.x || ^=17.x",
"react-dom": "^=16.x || ^=17.x"
},
"files": [
"dist"
],
"types": "dist/index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/cypress-io/cypress.git"
},
"homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/react/#readme",
"bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Freact&template=1-bug-report.md&title=",
"keywords": [
"react",
"cypress",
"cypress-io",
"test",
"testing"
],
"contributors": [
{
"name": "Dmitriy Kovalenko",
"social": "@dmtrKovalenko"
},
{
"name": "Brian Mann",
"social": "@brian-mann"
},
{
"name": "Barthélémy Ledoux",
"social": "@elevatebart"
},
{
"name": "Lachlan Miller",
"social": "@lmiller1990"
},
{
"name": "Jessica Sachs",
"social": "@_JessicaSachs"
}
],
"unpkg": "dist/cypress-react.browser.js",
"module": "dist/cypress-react.esm-bundler.js",
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public"
},
"nx": {
"targets": {
"build": {
"dependsOn": [
"!@cypress/react18:build"
],
"outputs": [
"{workspaceRoot}/cli/react",
"{projectRoot}/dist"
]
}
}
},
"standard": {
"globals": [
"Cypress",
"cy",
"expect"
]
}
}
| cypress/npm/react/package.json/0 | {
"file_path": "cypress/npm/react/package.json",
"repo_id": "cypress",
"token_count": 1422
} | 40 |
import React from 'react'
// @ts-expect-error
import ReactDOM from 'react-dom/client'
import { getContainerEl } from '@cypress/mount-utils'
import {
makeMountFn,
makeUnmountFn,
} from '@cypress/react'
import type {
MountOptions,
MountReturn,
InternalMountOptions,
UnmountArgs,
} from '@cypress/react'
let root: ReactDOM.Root | null
const cleanup = () => {
if (root) {
root.unmount()
root = null
return true
}
return false
}
/**
* Mounts a React component into the DOM.
* @param {import('react').JSX.Element} jsx The React component to mount.
* @param {MountOptions} options Options to pass to the mount function.
* @param {string} rerenderKey A key to use to force a rerender.
*
* @example
* import { mount } from '@cypress/react'
* import { Stepper } from './Stepper'
*
* it('mounts', () => {
* mount(<StepperComponent />)
* cy.get('[data-cy=increment]').click()
* cy.get('[data-cy=counter]').should('have.text', '1')
* }
*
* @see {@link https://on.cypress.io/mounting-react} for more details.
*
* @returns {Cypress.Chainable<MountReturn>} The mounted component.
*/
export function mount (jsx: React.ReactNode, options: MountOptions = {}, rerenderKey?: string) {
// Remove last mounted component if cy.mount is called more than once in a test
// React by default removes the last component when calling render, but we should remove the root
// to wipe away any state
cleanup()
const internalOptions: InternalMountOptions = {
reactDom: ReactDOM,
render: (reactComponent: ReturnType<typeof React.createElement>, el: HTMLElement) => {
if (!root) {
root = ReactDOM.createRoot(el)
}
return root.render(reactComponent)
},
unmount: internalUnmount,
cleanup,
}
return makeMountFn('mount', jsx, { ReactDom: ReactDOM, ...options }, rerenderKey, internalOptions)
}
function internalUnmount (options = { log: true }) {
return makeUnmountFn(options)
}
/**
* Removed as of Cypress 11.0.0.
* @see https://on.cypress.io/migration-11-0-0-component-testing-updates
*/
export function unmount (options: UnmountArgs = { log: true }) {
// @ts-expect-error - undocumented API
Cypress.utils.throwErrByPath('mount.unmount')
}
// Re-export this to help with migrating away from `unmount`
export {
getContainerEl,
}
export type {
MountOptions,
MountReturn,
}
| cypress/npm/react18/src/index.ts/0 | {
"file_path": "cypress/npm/react18/src/index.ts",
"repo_id": "cypress",
"token_count": 800
} | 41 |
version: 2
snapshot:
widths:
- 1280
min-height: 1024
discovery:
network-idle-timeout: 750
| cypress/npm/vite-dev-server/.percy.yml/0 | {
"file_path": "cypress/npm/vite-dev-server/.percy.yml",
"repo_id": "cypress",
"token_count": 40
} | 42 |
import { devServer } from './devServer'
export { devServer }
export default devServer
| cypress/npm/vite-dev-server/src/index.ts/0 | {
"file_path": "cypress/npm/vite-dev-server/src/index.ts",
"repo_id": "cypress",
"token_count": 25
} | 43 |
const __cypressModuleCache = new Map()
const NO_REDEFINE_LIST = new Set(['prototype'])
let debug = false
function createProxyModule (module) {
// What we build our module proxy off of depends on whether the module has a default export
// We need to be able to support `import DefaultValue from 'module'` => `const DefaultValue = __cypressModule(module)`
const base = module.default || module
let target
// Work around for the fact that a module with a default export needs to work the same way via object destructuring
// for this module remapping concept to work
// ```
// import TheDefault from 'module'
// `TheDefault` could be an object or a function
// ```
if (typeof base === 'function') {
target = function (...params) {
if (typeof target.default === 'function') {
return target.default.apply(this, params)
}
if (typeof module === 'function') {
return module.apply(this, params)
}
}
} else {
target = {}
}
const proxies = {}
function redefinePropertyDescriptors (module, overrides) {
Object.entries(Object.getOwnPropertyDescriptors(module)).forEach(([key, descriptor]) => {
if (Array.isArray(module)) {
return
}
if (NO_REDEFINE_LIST.has(key)) {
log(`⏭️ Skipping ${key}`)
return
}
log(`🧪 Redefining ${key}`)
const params = {
...descriptor,
...overrides,
}
// If a property defines accessors it cannot also specify `value` and/or `writable`.
// Those are implicit from the presence of the accessor functions.
if ('get' in params || 'set' in params) {
delete params.writable
delete params.value
}
Object.defineProperty(target, key, params)
// The underlying value could be a raw value *or* a value provided by a getter
const describedValue = descriptor.value || descriptor.get?.()
if (typeof describedValue === 'function') {
// This is how you can see if something is a class
// TODO: Revisit, there has to be a better way to do this
// Important! RegEx instances are stateful, do not extract to a constant
const isClass = /^class\s.+?\{.+?\}/gms.test(describedValue.toString())
if (isClass) {
log(`🏗️ Handling ${key} as a constructor`)
proxies[key] = function (...params) {
// Edge case - use `apply` with `new` to create a class instance
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct
return Reflect.construct(target[key], params)
}
} else {
log(`🎁 Handling ${key} with a standard wrapper function`)
proxies[key] = function (...params) {
// Prefer invoking with `apply` so we get proper context in the invoked function
if (target[key].apply) {
return target[key].apply(this, params)
}
// Certain weird edge-cases manage to create functions without the Function
// prototype, thus no `apply` 🤷. Fall back to straight invocation
return target[key](params)
}
}
proxies[key].prototype = target[key].prototype
} else {
log(`${key} is not a function`)
}
})
}
// Do not proxify arrays - you can't spy on an array, no need.
if (Array.isArray(module.default)) {
return module.default
}
if (module.default) {
redefinePropertyDescriptors(module.default, {
writable: true,
enumerable: true,
})
}
redefinePropertyDescriptors(module, {
configurable: true,
writable: true,
})
const moduleProxy = new Proxy(target, {
get (_, prop, receiver) {
const value = target[prop]
if (typeof value === 'function') {
// Check to see if this retrieval is coming from a sinon `spy` creation
// If so, we want to supply the 'true' function rather than our proxied version
// so the spy can call through to the real implementation
const stack = new Error().stack
if (stack?.includes('Sandbox.spy')) {
log(`🕵️ Detected ${prop} is being defined as a Sinon spy`)
return value
}
// Otherwise, return our proxied function implementation
return proxies[prop]
}
return target[prop]
},
set (obj, prop, value) {
target[prop] = value
if (typeof value === 'function' && !(prop in proxies)) {
proxies[prop] = function (...params) {
return target[prop].apply(this, params)
}
}
return true
},
defineProperty (_, key, descriptor) {
// Ignore `define` attempts to set a sinon proxy, but return true anyways
// Allowing define would blow away our function proxy
// Sinon circles back and attempts to set via `set` anyways so this isn't necessary
if (descriptor.value?.isSinonProxy) {
return true
}
Object.defineProperty(target, key, { ...descriptor, writable: true, configurable: true })
return true
},
deleteProperty (_, prop) {
// Don't allow deletion - Sinon tries to delete things as a cleanup activity which breaks our proxied functions
return true
},
})
return moduleProxy
}
function log (msg) {
if (!debug) {
return
}
console.log(`[cypress:vite-plugin-cypress-esm]: ${msg}`)
}
function cacheAndProxifyModule (id, module) {
if (__cypressModuleCache.has(module)) {
return __cypressModuleCache.get(module)
}
log(`🔨 creating proxy module for ${id}`)
try {
const moduleProxy = createProxyModule(module)
log(`✅ created proxy module for ${id}`)
__cypressModuleCache.set(module, moduleProxy)
log(`📈 Module cache now contains ${__cypressModuleCache.size} entries`)
return moduleProxy
} catch (err) {
console.warn(`Failed to proxy module ${id}, using original which will *not* support stub/spy`, err)
return module
}
}
window.__cypressDynamicModule = function (id, importPromise, _debug = false) {
debug = _debug
return Promise.resolve(importPromise.then((module) => {
return cacheAndProxifyModule(id, module)
}))
}
window.__cypressModule = function (id, module, _debug = false) {
debug = _debug
return cacheAndProxifyModule(id, module)
}
| cypress/npm/vite-plugin-cypress-esm/client/moduleCache.js/0 | {
"file_path": "cypress/npm/vite-plugin-cypress-esm/client/moduleCache.js",
"repo_id": "cypress",
"token_count": 2378
} | 44 |
export const Mod = {
async fetcher () {
import('./mod_2').then((mod) => {
document.querySelector(`[data-cy-root]`)!.innerHTML = `<h1>${mod.greeting}</h1>`
})
},
run () {
window.setTimeout(() => {
this.fetcher()
}, 2000)
},
}
| cypress/npm/vite-plugin-cypress-esm/cypress/component/fixtures/mod_1.ts/0 | {
"file_path": "cypress/npm/vite-plugin-cypress-esm/cypress/component/fixtures/mod_1.ts",
"repo_id": "cypress",
"token_count": 122
} | 45 |
# i18n example
* For JSON-only, see [TranslatedJSONMessage.vue](TranslatedJSONMessage.vue) and its test in [spec.js](spec.js)
* From i18n support loading, see [TranslatedI18nMessage.vue](TranslatedI18nMessage.vue) and its test in [spec.js](spec.js)

**Note:** the `vue-i18n-loader` requires a webpack rule, see Webpack config in the root folder.
| cypress/npm/vue/cypress/component/advanced/i18n/README.md/0 | {
"file_path": "cypress/npm/vue/cypress/component/advanced/i18n/README.md",
"repo_id": "cypress",
"token_count": 141
} | 46 |
# Hello example
From [Vue2 cookbook](https://vuejs.org/v2/cookbook/unit-testing-vue-components.html)
Find the component in [Hello.vue](Hello.vue) and its test in [Hello-spec.js](Hello-spec.js)

| cypress/npm/vue/cypress/component/basic/hello/README.md/0 | {
"file_path": "cypress/npm/vue/cypress/component/basic/hello/README.md",
"repo_id": "cypress",
"token_count": 87
} | 47 |
<template>
<button @click="incrementCounter">
{{ counter }}
</button>
</template>
<script>
export default {
emits: ['increment'],
data () {
return {
counter: 0,
}
},
methods: {
incrementCounter () {
this.counter += 1
this.$emit('increment')
},
},
}
</script>
<style scoped>
button {
margin: 5px 10px;
padding: 5px 10px;
border-radius: 3px;
}
</style>
| cypress/npm/vue/cypress/component/button/ButtonCounter.vue/0 | {
"file_path": "cypress/npm/vue/cypress/component/button/ButtonCounter.vue",
"repo_id": "cypress",
"token_count": 173
} | 48 |
import { mount } from '@cypress/vue'
import { h, defineComponent } from 'vue'
describe('smoke test', () => {
it('mounts with no options', () => {
const comp = defineComponent({
setup () {
return () => h('div', 'hello world')
},
})
mount(comp)
cy.get('div').contains('hello world')
})
})
| cypress/npm/vue/cypress/component/smoke.cy.js/0 | {
"file_path": "cypress/npm/vue/cypress/component/smoke.cy.js",
"repo_id": "cypress",
"token_count": 131
} | 49 |
{
"name": "@cypress/vue",
"version": "0.0.0-development",
"description": "Browser-based Component Testing for Vue.js with Cypress.io ✌️🌲",
"main": "dist/cypress-vue.cjs.js",
"scripts": {
"build": "rimraf dist && rollup -c rollup.config.mjs",
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
"check-ts": "yarn tsd && vue-tsc --noEmit",
"cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
"cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
"test": "yarn cy:run",
"tsd": "yarn build && yarn tsc -p test-tsd/tsconfig.tsd.json",
"watch": "yarn build --watch --watch.exclude ./dist/**/*"
},
"devDependencies": {
"@cypress/mount-utils": "0.0.0-development",
"@vitejs/plugin-vue": "4.2.0",
"@vue/compiler-sfc": "3.2.47",
"@vue/test-utils": "2.3.2",
"axios": "0.21.2",
"cypress": "0.0.0-development",
"debug": "^4.3.4",
"globby": "^11.0.1",
"tailwindcss": "1.1.4",
"typescript": "~5.4.5",
"vite": "4.5.2",
"vue": "3.2.47",
"vue-i18n": "9.0.0-rc.6",
"vue-router": "^4.0.0",
"vue-tsc": "^2.0.19",
"vuex": "^4.0.0"
},
"peerDependencies": {
"@cypress/webpack-dev-server": "*",
"cypress": ">=7.0.0",
"vue": ">=3.0.0"
},
"files": [
"dist/**/*",
"src/**/*.js"
],
"engines": {
"node": ">=8"
},
"types": "dist/index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/cypress-io/cypress.git"
},
"homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/vue/#readme",
"bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=",
"keywords": [
"cypress",
"vue"
],
"contributors": [
{
"name": "Jessica Sachs",
"social": "@JessicaSachs"
},
{
"name": "Amir Rustamzadeh",
"social": "@amirrustam"
},
{
"name": "Lachlan Miller",
"social": "@Lachlan19900"
}
],
"module": "dist/cypress-vue.esm-bundler.js",
"peerDependenciesMeta": {
"@cypress/webpack-dev-server": {
"optional": true
}
},
"publishConfig": {
"access": "public"
},
"nx": {
"targets": {
"build": {
"dependsOn": [
"!@cypress/react18:build"
],
"outputs": [
"{workspaceRoot}/cli/vue",
"{projectRoot}/dist"
]
}
}
}
}
| cypress/npm/vue/package.json/0 | {
"file_path": "cypress/npm/vue/package.json",
"repo_id": "cypress",
"token_count": 1292
} | 50 |
# [@cypress/vue2-v2.1.1](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v2.1.0...@cypress/vue2-v2.1.1) (2024-06-07)
### Bug Fixes
* update cypress to Typescript 5 ([#29568](https://github.com/cypress-io/cypress/issues/29568)) ([f3b6766](https://github.com/cypress-io/cypress/commit/f3b67666a5db0438594339c379cf27e1fd1e4abc))
# [@cypress/vue2-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v2.0.1...@cypress/vue2-v2.1.0) (2024-03-12)
### Features
* supported type of vue@2.7+ ([#28818](https://github.com/cypress-io/cypress/issues/28818)) ([854a649](https://github.com/cypress-io/cypress/commit/854a6497be2315881b8ad9c92674d3c29a76d581))
# [@cypress/vue2-v2.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v2.0.0...@cypress/vue2-v2.0.1) (2022-11-14)
### Bug Fixes
* vue2 global directives in component testing ([#24488](https://github.com/cypress-io/cypress/issues/24488)) ([741019d](https://github.com/cypress-io/cypress/commit/741019d9618b7be79db64c9039ebca07741dd5c7))
# [@cypress/vue2-v2.0.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.1.2...@cypress/vue2-v2.0.0) (2022-11-07)
### Bug Fixes
* remove dependence on @cypress/<dep> types ([#24415](https://github.com/cypress-io/cypress/issues/24415)) ([58e0ab9](https://github.com/cypress-io/cypress/commit/58e0ab91604618ea6f75932622f7e66e419270e6))
* remove last mounted component upon subsequent mount calls ([#24470](https://github.com/cypress-io/cypress/issues/24470)) ([f39eb1c](https://github.com/cypress-io/cypress/commit/f39eb1c19e0923bda7ae263168fc6448da942d54))
* remove some CT functions and props ([#24419](https://github.com/cypress-io/cypress/issues/24419)) ([294985f](https://github.com/cypress-io/cypress/commit/294985f8b3e0fa00ed66d25f88c8814603766074))
### Features
* include component and wrapper in return type for vue mount adapter ([#24479](https://github.com/cypress-io/cypress/issues/24479)) ([33875d7](https://github.com/cypress-io/cypress/commit/33875d75505416b1f65ca7c6d5dedc46f3289f1b))
### BREAKING CHANGES
* remove last mounted component upon subsequent mount calls of mount
* Vue mount returns wrapper and component rather than wrapper only
# [@cypress/vue2-v1.1.2](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.1.1...@cypress/vue2-v1.1.2) (2022-11-01)
### Bug Fixes
* Hovering over mount in command log does not show component in AUT ([#24346](https://github.com/cypress-io/cypress/issues/24346)) ([355d210](https://github.com/cypress-io/cypress/commit/355d2101d38ea4d1e93b9c571cf77babab2bbbfc))
# [@cypress/vue2-v1.1.1](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.1.0...@cypress/vue2-v1.1.1) (2022-10-13)
### Bug Fixes
* angular and nuxt ct tests now fail on uncaught exceptions ([#24122](https://github.com/cypress-io/cypress/issues/24122)) ([53eef4f](https://github.com/cypress-io/cypress/commit/53eef4fbd7e1caf32f0183cadbc0e4cf05524c34))
# [@cypress/vue2-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.2...@cypress/vue2-v1.1.0) (2022-08-30)
### Features
* adding svelte component testing support ([#23553](https://github.com/cypress-io/cypress/issues/23553)) ([f6eaad4](https://github.com/cypress-io/cypress/commit/f6eaad40e1836fa9db87c60defa5ae6f390c8fd8))
# [@cypress/vue2-v1.0.2](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.1...@cypress/vue2-v1.0.2) (2022-08-11)
### Bug Fixes
* remove CT side effects from mount when e2e testing ([#22633](https://github.com/cypress-io/cypress/issues/22633)) ([a9476ec](https://github.com/cypress-io/cypress/commit/a9476ecb3d43f628b689e060294a1952937cb1a7))
# [@cypress/vue2-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vue2-v1.0.0...@cypress/vue2-v1.0.1) (2022-06-13)
### Bug Fixes
* remove http npm registry link for vue2 ([0bd3069](https://github.com/cypress-io/cypress/commit/0bd306962bce2a32d7b87fc1811a7b9feeb63ae2))
# @cypress/vue2-v1.0.0 (2022-06-13)
### Bug Fixes
* add package.json metadata for webpack-dev-server ([#22292](https://github.com/cypress-io/cypress/issues/22292)) ([9cfec97](https://github.com/cypress-io/cypress/commit/9cfec9750f2ddc9fe691aabbe2ecc9bc02a3d915))
* display cy.mount command log ([#21500](https://github.com/cypress-io/cypress/issues/21500)) ([140b4ba](https://github.com/cypress-io/cypress/commit/140b4ba2110243712a614a39b2408c30cce4d0b1))
* Doc changes around vue2 ([#21066](https://github.com/cypress-io/cypress/issues/21066)) ([17905a7](https://github.com/cypress-io/cypress/commit/17905a79ee5106b0d72c8e74bb717fcd7b796dee))
### chore
* prep npm packages for use with Cypress v10 ([b924d08](https://github.com/cypress-io/cypress/commit/b924d086ee2e2ccc93303731e001b2c9e9d0af17))
### Features
* Add vue2 package from npm/vue/v2 branch ([#21026](https://github.com/cypress-io/cypress/issues/21026)) ([3aa69e2](https://github.com/cypress-io/cypress/commit/3aa69e2538aae5702bfc48789c54f37263ce08fc))
* swap the #__cy_root id selector to become data-cy-root for component mounting ([#20951](https://github.com/cypress-io/cypress/issues/20951)) ([0e7b555](https://github.com/cypress-io/cypress/commit/0e7b555f93fb403f431c5de4a07ae7ad6ac89ba2))
### BREAKING CHANGES
* new version of packages for Cypress v10
# @cypress/vue2-v1.0.0 (2021-06-17)
### Features
* Split out as separate package from `@cypress/vue`, based on the `npm/vue/v2` branch.
| cypress/npm/vue2/CHANGELOG.md/0 | {
"file_path": "cypress/npm/vue2/CHANGELOG.md",
"repo_id": "cypress",
"token_count": 2344
} | 51 |
const EventEmitter = require('events').EventEmitter
const { expect } = require('chai')
const fs = require('fs-extra')
const path = require('path')
const preprocessor = require('../../index')
const fixturesDir = path.join(__dirname, '..', 'fixtures')
const outputDir = path.join(__dirname, '..', '_test-output')
const run = (fileName, options) => {
const file = Object.assign(new EventEmitter(), {
filePath: path.join(outputDir, fileName),
outputPath: path.join(outputDir, fileName.replace('.', '_output.')),
})
return preprocessor(options)(file)
}
const runAndEval = async (fileName, options) => {
const outputPath = await run(fileName, options)
const contents = await fs.readFile(outputPath)
eval(contents.toString())
}
describe('webpack-batteries-included-preprocessor features', () => {
beforeEach(async () => {
preprocessor.__reset()
await fs.remove(outputDir)
await fs.copy(fixturesDir, outputDir)
})
it('handles module interop, object spread, class properties, and async/await', async () => {
await runAndEval('es_features_spec.js')
})
it('handles jsx', async () => {
await runAndEval('jsx_spec.jsx')
})
it('handles mjs', async () => {
await runAndEval('mjs_spec.mjs')
})
it('handles coffeescript', async () => {
await runAndEval('coffee_spec.coffee')
})
it('handles import default export in coffeescript', async () => {
await runAndEval('coffee_imports_spec.coffee')
})
it('handles importing .js, .json, .jsx, .mjs, and .coffee', async () => {
await runAndEval('various_imports_spec.js')
})
it('shims node globals', async () => {
await runAndEval('node_shim_spec.js')
})
it('shims node builtins', async () => {
await runAndEval('node_builtins_spec.js')
})
it('outputs inline source map', async () => {
const outputPath = await run('es_features_spec.js')
const contents = await fs.readFile(outputPath)
expect(contents.toString()).to.include('//# sourceMappingURL=data:application/json;charset=utf-8;base64')
})
describe('with typescript option set', () => {
const shouldntResolve = () => {
throw new Error('Should error, should not resolve')
}
const options = { typescript: require.resolve('typescript') }
it('handles typescript (and tsconfig paths)', async () => {
await runAndEval('ts_spec.ts', { ...options })
})
it('handles tsx', async () => {
await runAndEval('tsx_spec.tsx', { ...options })
})
it('handles importing .ts and .tsx', async () => {
await runAndEval('typescript_imports_spec.js', { ...options })
})
it('handles esModuleInterop: false (default)', async () => {
await runAndEval('typescript_esmoduleinterop_false_spec.ts', { ...options })
})
it('handles esModuleInterop: true', async () => {
await runAndEval('esmoduleinterop-true/typescript_esmoduleinterop_true_spec.ts', { ...options })
})
// https://github.com/cypress-io/cypress/issues/15767
// defaultOptions don't have typescript config baked in since it requires
// the path to typescript and the file, so it needs to be added later
it('adds typescript support if using defaultOptions', async () => {
await runAndEval('tsx_spec.tsx', { ...options, ...preprocessor.defaultOptions })
})
it('errors when processing .ts file and typescript option is not set', () => {
return run('ts_spec.ts')
.then(shouldntResolve)
.catch((err) => {
expect(err.message).to.include(`You are attempting to run a TypeScript file, but do not have TypeScript installed. Ensure you have 'typescript' installed to enable TypeScript support`)
expect(err.message).to.include('ts_spec.ts')
})
})
it('errors when processing .tsx file and typescript option is not set', () => {
return run('tsx_spec.tsx')
.then(shouldntResolve)
.catch((err) => {
expect(err.message).to.include(`You are attempting to run a TypeScript file, but do not have TypeScript installed. Ensure you have 'typescript' installed to enable TypeScript support`)
expect(err.message).to.include('tsx_spec.tsx')
})
})
})
})
| cypress/npm/webpack-batteries-included-preprocessor/test/e2e/features.spec.js/0 | {
"file_path": "cypress/npm/webpack-batteries-included-preprocessor/test/e2e/features.spec.js",
"repo_id": "cypress",
"token_count": 1501
} | 52 |
{
"json": "contents"
}
| cypress/npm/webpack-batteries-included-preprocessor/test/fixtures/json_file.json/0 | {
"file_path": "cypress/npm/webpack-batteries-included-preprocessor/test/fixtures/json_file.json",
"repo_id": "cypress",
"token_count": 13
} | 53 |
# @cypress/webpack-dev-server
Implements the APIs for the object-syntax of the Cypress Component-testing "webpack dev server".
> **Note:** This package is bundled with the Cypress binary and should not need to be installed separately. See the [Component Framework Configuration Docs](https://docs.cypress.io/guides/component-testing/component-framework-configuration) for setting up component testing with webpack. The `devServer` function signature is for advanced use-cases.
Object API:
```ts
import { defineConfig } from 'cypress'
export default defineConfig({
component: {
devServer: {
framework: 'create-react-app',
bundler: 'webpack',
// webpackConfig?: Will try to infer, if passed it will be used as is
}
}
})
```
Function API:
```ts
import { devServer } from '@cypress/webpack-dev-server'
import { defineConfig } from 'cypress'
export default defineConfig({
component: {
devServer(devServerConfig) {
return devServer({
...devServerConfig,
framework: 'create-react-app',
webpackConfig: require('./webpack.config.js')
})
}
}
})
```
## Testing
Unit tests can be run with `yarn test`. Integration tests can be run with `yarn cypress:run`
This module should be primarily covered by system-tests / open-mode tests. All system-tests directories should be created using the notation:
`webpack${major}_wds${devServerMajor}-$framework{-$variant}`
- webpack4_wds3-react
- webpack5_wds5-react
- webpack4_wds4-next-11
- webpack5_wds3-next-12
- webpack4_wds4-create-react-app
## Architecture
There should be a single publicly-exported entrypoint for the module, `devServer`, all other types and functions should be considered internal/implementation details, and types stripped from the output.
The `devServer` will first source the modules from the user's project, falling back to our own bundled versions of libraries. This ensures that the user has installed the current modules, and throws an error if the user does not have the library installed.
From there, we check the "framework" field to source or define any known webpack transforms to aid in the compilation.
We then merge the sourced config with the user's webpack config, and layer on our own transforms, and provide this to a webpack instance. The webpack instance used to create a webpack-dev-server, which is returned.
## Compatibility
| @cypress/webpack-dev-server | cypress |
| --------------------------- | ------- |
| <= v1 | <= v9 |
| >= v2 | >= v10 |
| >= v4 | >= v13 |
## License
[](https://github.com/cypress-io/cypress/blob/develop/LICENSE)
This project is licensed under the terms of the [MIT license](/LICENSE).
## [Changelog](./CHANGELOG.md)
| cypress/npm/webpack-dev-server/README.md/0 | {
"file_path": "cypress/npm/webpack-dev-server/README.md",
"repo_id": "cypress",
"token_count": 918
} | 54 |
export const configFiles = [
'webpack.config.ts',
'webpack.config.js',
'webpack.config.mjs',
'webpack.config.cjs',
]
| cypress/npm/webpack-dev-server/src/constants.ts/0 | {
"file_path": "cypress/npm/webpack-dev-server/src/constants.ts",
"repo_id": "cypress",
"token_count": 51
} | 55 |
import path from 'path'
import { expect } from 'chai'
import { once, EventEmitter } from 'events'
import http from 'http'
import fs from 'fs-extra'
import { devServer } from '..'
import { restoreLoadHook } from '../src/helpers/sourceRelativeWebpackModules'
import './support'
import type { ConfigHandler } from '../src/devServer'
const requestSpecFile = (file: string, port: number) => {
return new Promise((res) => {
const opts = {
host: '127.0.0.1',
port,
path: encodeURI(file),
}
const callback = (response: EventEmitter) => {
let str = ''
response.on('data', (chunk) => {
str += chunk
})
response.on('end', () => {
res(str)
})
}
http.request(opts, callback).end()
})
}
const root = path.join(__dirname, '..')
const webpackConfig: ConfigHandler = {
devServer: { static: { directory: root } },
}
const createSpecs = (name: string): Cypress.Cypress['spec'][] => {
return [
{
name: `${root}/test/fixtures/${name}`,
relative: `${root}/test/fixtures/${name}`,
absolute: `${root}/test/fixtures/${name}`,
},
]
}
type DevServerCloseFn = Awaited<ReturnType<typeof devServer>>['close']
const closeServer = async (closeFn: DevServerCloseFn) => {
await new Promise<void>((resolve, reject) => {
closeFn((err?: Error) => {
if (err) {
return reject(err)
}
resolve()
})
})
}
const cypressConfig = {
projectRoot: root,
supportFile: '',
isTextTerminal: true,
devServerPublicPathRoute: root,
indexHtmlFile: 'test/component-index.html',
} as any as Cypress.PluginConfigOptions
describe('#devServer', () => {
beforeEach(() => {
delete require.cache
restoreLoadHook()
})
after(() => {
restoreLoadHook()
})
it('serves specs via a webpack dev server', async () => {
const { port, close } = await devServer({
cypressConfig,
webpackConfig,
specs: createSpecs('foo.spec.js'),
devServerEvents: new EventEmitter(),
})
const response = await requestSpecFile('/test/fixtures/foo.spec.js', port as number)
expect(response).to.eq('const foo = () => {}\n')
await closeServer(close)
})
it('serves specs in directory with [] chars via a webpack dev server', async () => {
const { port, close } = await devServer({
cypressConfig,
webpackConfig,
specs: createSpecs('[foo]/bar.spec.js'),
devServerEvents: new EventEmitter(),
})
const response = await requestSpecFile('/test/fixtures/[foo]/bar.spec.js', port as number)
expect(response).to.eq(`it('this is a spec with a path containing []', () => {})\n`)
return closeServer(close)
})
it('serves specs in directory with non English chars via a webpack dev server', async () => {
const { port, close } = await devServer({
webpackConfig,
cypressConfig,
specs: createSpecs('サイプレス.spec.js'),
devServerEvents: new EventEmitter(),
})
const response = await requestSpecFile('/test/fixtures/サイプレス.spec.js', port as number)
expect(response).to.eq(`it('サイプレス', () => {})\n`)
return closeServer(close)
})
it('serves specs in directory with ... in the file name via a webpack dev server', async () => {
const { port, close } = await devServer({
webpackConfig,
cypressConfig,
specs: createSpecs('[...bar].spec.js'),
devServerEvents: new EventEmitter(),
})
const response = await requestSpecFile('/test/fixtures/[...bar].spec.js', port as number)
expect(response).to.eq(`it('...bar', () => {})\n`)
return closeServer(close)
})
it('serves a file with spaces via a webpack dev server', async () => {
const { port, close } = await devServer({
webpackConfig,
cypressConfig,
specs: createSpecs('foo bar.spec.js'),
devServerEvents: new EventEmitter(),
})
const response = await requestSpecFile('/test/fixtures/foo bar.spec.js', port as number)
expect(response).to.eq(`it('this is a spec with a path containing a space', () => {})\n`)
return closeServer(close)
})
it('emits dev-server:compile:success event on successful compilation', async () => {
const devServerEvents = new EventEmitter()
const { close } = await devServer({
webpackConfig,
cypressConfig,
specs: createSpecs('foo.spec.js'),
devServerEvents,
})
await once(devServerEvents, 'dev-server:compile:success')
await closeServer(close)
})
it('touches component index when a spec file is added and recompile', async function () {
// File watching only enabled when running in `open` mode
cypressConfig.isTextTerminal = false
const devServerEvents = new EventEmitter()
const { close } = await devServer({
webpackConfig,
cypressConfig,
specs: createSpecs('foo.spec.js'),
devServerEvents,
})
const newSpec: Cypress.Cypress['spec'] = {
name: `${root}/test/fixtures/bar.spec.js`,
relative: `${root}/test/fixtures/bar.spec.js`,
absolute: `${root}/test/fixtures/bar.spec.js`,
}
const oldmtime = fs.statSync(cypressConfig.indexHtmlFile).mtimeMs
await once(devServerEvents, 'dev-server:compile:success')
devServerEvents.emit('dev-server:specs:changed', [newSpec])
await once(devServerEvents, 'dev-server:compile:success')
const updatedmtime = fs.statSync(cypressConfig.indexHtmlFile).mtimeMs
expect(oldmtime).to.not.equal(updatedmtime)
await closeServer(close)
})
;[{
title: 'does not watch/recompile files in `run` mode',
isRunMode: true,
updateExpected: false,
message: 'Files should not be watched in `run` mode',
}, {
title: 'watches and recompiles files on change in `open` mode',
isRunMode: false,
updateExpected: true,
message: 'Files should be watched and automatically rebuild on update in `open` mode',
}].forEach(({ title, isRunMode, updateExpected, message }) => {
it(title, async () => {
const originalContent = await fs.readFile(`./test/fixtures/dependency.js`)
try {
cypressConfig.devServerPublicPathRoute = '/__cypress/src'
cypressConfig.isTextTerminal = isRunMode
const devServerEvents = new EventEmitter()
const { close, port } = await devServer({
webpackConfig: {},
cypressConfig,
specs: createSpecs('bar.spec.js'),
devServerEvents,
})
// Wait for initial "ready" from server
await once(devServerEvents, 'dev-server:compile:success')
// Get the initial version of the bundled spec
const original = await requestSpecFile('/__cypress/src/spec-0.js', port)
// Update a dependency of the spec
await fs.writeFile('./test/fixtures/dependency.js', `window.TEST = true;${originalContent}`)
// Brief wait to give server time to detect changes
await new Promise((resolve) => setTimeout(resolve, 500))
// Re-fetch the spec
const updated = await requestSpecFile('/__cypress/src/spec-0.js', port)
if (updateExpected) {
expect(original, message).not.to.equal(updated)
} else {
expect(original, message).to.equal(updated)
}
await closeServer(close)
} finally {
fs.writeFile('./test/fixtures/dependency.js', originalContent)
}
})
})
it('accepts the devServer signature', async function () {
const devServerEvents = new EventEmitter()
const { port, close } = await devServer(
{
cypressConfig,
specs: createSpecs('foo.spec.js'),
devServerEvents,
webpackConfig,
},
)
const response = await requestSpecFile('/test/fixtures/foo.spec.js', port as number)
expect(response).to.eq('const foo = () => {}\n')
await closeServer(close)
})
})
.timeout(5000)
| cypress/npm/webpack-dev-server/test/devServer-e2e.spec.ts/0 | {
"file_path": "cypress/npm/webpack-dev-server/test/devServer-e2e.spec.ts",
"repo_id": "cypress",
"token_count": 2994
} | 56 |
import Chai, { expect } from 'chai'
import EventEmitter from 'events'
import snapshot from 'snap-shot-it'
import { IgnorePlugin } from 'webpack'
import { WebpackDevServerConfig } from '../src/devServer'
import { CYPRESS_WEBPACK_ENTRYPOINT, makeWebpackConfig } from '../src/makeWebpackConfig'
import { createModuleMatrixResult } from './test-helpers/createModuleMatrixResult'
import sinon from 'sinon'
import SinonChai from 'sinon-chai'
import type { SourceRelativeWebpackResult } from '../src/helpers/sourceRelativeWebpackModules'
import path from 'path'
Chai.use(SinonChai)
const WEBPACK_DEV_SERVER_VERSIONS: (4 | 5)[] = [4, 5]
describe('makeWebpackConfig', () => {
it('ignores userland webpack `output.publicPath` and `devServer.overlay` with webpack-dev-server v3', async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
isTextTerminal: false,
projectRoot: '.',
supportFile: '/support.js',
devServerPublicPathRoute: '/test-public-path',
} as Cypress.PluginConfigOptions,
webpackConfig: {
output: {
publicPath: '/this-will-be-ignored', // This will be overridden by makeWebpackConfig.ts
},
devServer: {
progress: true,
overlay: true, // This will be overridden by makeWebpackConfig.ts
} as any,
optimization: {
noEmitOnErrors: true, // This will be overridden by makeWebpackConfig.ts
},
devtool: 'eval', // This will be overridden by makeWebpackConfig.ts
},
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: 4,
webpackDevServer: 3,
}),
})
// plugins contain circular deps which cannot be serialized in a snapshot.
// instead just compare the name and order of the plugins.
;(actual as any).plugins = actual.plugins.map((p) => p.constructor.name)
// these will include paths from the user's local file system, so we should not include them the snapshot
delete actual.output.path
delete actual.entry
expect(actual.output.publicPath).to.eq('/test-public-path/')
snapshot(actual)
})
it('ignores userland webpack `output.publicPath` and `devServer.overlay` with webpack-dev-server v4', async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
isTextTerminal: false,
projectRoot: '.',
supportFile: '/support.js',
devServerPublicPathRoute: '/test-public-path', // This will be overridden by makeWebpackConfig.ts
} as Cypress.PluginConfigOptions,
webpackConfig: {
output: {
publicPath: '/this-will-be-ignored',
},
devServer: {
magicHtml: true,
client: {
progress: false,
overlay: true, // This will be overridden by makeWebpackConfig.ts
},
},
optimization: {
emitOnErrors: false, // This will be overridden by makeWebpackConfig.ts
},
devtool: 'eval', // This will be overridden by makeWebpackConfig.ts
},
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: 5,
webpackDevServer: 4,
}),
})
// plugins contain circular deps which cannot be serialized in a snapshot.
// instead just compare the name and order of the plugins.
;(actual as any).plugins = actual.plugins.map((p) => p.constructor.name)
// these will include paths from the user's local file system, so we should not include them the snapshot
delete actual.output.path
delete actual.entry
expect(actual.output.publicPath).to.eq('/test-public-path/')
snapshot(actual)
})
it('ignores userland webpack `output.publicPath` and `devServer.overlay` with webpack-dev-server v5', async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
isTextTerminal: false,
projectRoot: '.',
supportFile: '/support.js',
devServerPublicPathRoute: '/test-public-path', // This will be overridden by makeWebpackConfig.ts
} as Cypress.PluginConfigOptions,
webpackConfig: {
output: {
publicPath: '/this-will-be-ignored',
},
devServer: {
magicHtml: true,
client: {
progress: false,
overlay: true, // This will be overridden by makeWebpackConfig.ts
},
},
optimization: {
emitOnErrors: false, // This will be overridden by makeWebpackConfig.ts
},
devtool: 'eval', // This will be overridden by makeWebpackConfig.ts
},
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: 5,
webpackDevServer: 5,
}),
})
// plugins contain circular deps which cannot be serialized in a snapshot.
// instead just compare the name and order of the plugins.
;(actual as any).plugins = actual.plugins.map((p) => p.constructor.name)
// these will include paths from the user's local file system, so we should not include them the snapshot
delete actual.output.path
delete actual.entry
expect(actual.output.publicPath).to.eq('/test-public-path/')
snapshot(actual)
})
WEBPACK_DEV_SERVER_VERSIONS.forEach((VERSION) => {
describe(`webpack-dev-server: v${VERSION}`, () => {
it(`removes entrypoint from merged webpackConfig`, async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
projectRoot: '.',
devServerPublicPathRoute: '/test-public-path',
} as Cypress.PluginConfigOptions,
webpackConfig: {
entry: { main: 'src/index.js' },
},
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: VERSION,
webpackDevServer: VERSION,
}),
})
expect(actual.entry).eq(CYPRESS_WEBPACK_ENTRYPOINT)
})
it(`removes entrypoint from merged webpackConfig`, async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
projectRoot: '.',
devServerPublicPathRoute: '/test-public-path',
} as Cypress.PluginConfigOptions,
webpackConfig: {
entry: { main: 'src/index.js' },
},
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: VERSION,
webpackDevServer: VERSION,
}),
})
expect(actual.entry).eq(CYPRESS_WEBPACK_ENTRYPOINT)
})
it(`preserves entrypoint from merged webpackConfig if framework = angular`, async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
projectRoot: '.',
devServerPublicPathRoute: '/test-public-path',
} as Cypress.PluginConfigOptions,
webpackConfig: {
entry: { main: 'src/index.js' },
},
devServerEvents: new EventEmitter(),
framework: 'angular',
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: VERSION,
webpackDevServer: VERSION,
}),
})
expect(actual.entry).deep.eq({
main: 'src/index.js',
'cypress-entry': CYPRESS_WEBPACK_ENTRYPOINT,
})
})
context('config resolution', () => {
it('with <project-root>/webpack.config.js', async () => {
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
projectRoot: path.join(__dirname, 'fixtures'),
devServerPublicPathRoute: '/test-public-path', // This will be overridden by makeWebpackConfig.ts
} as Cypress.PluginConfigOptions,
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: 5,
webpackDevServer: VERSION,
}),
})
expect(actual.plugins.map((p) => p.constructor.name)).to.have.members(
['CypressCTWebpackPlugin', 'HtmlWebpackPlugin', 'FromWebpackConfigFile'],
)
})
it('with component.devServer.webpackConfig', async () => {
class FromInlineWebpackConfig {
apply () {}
}
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
projectRoot: path.join(__dirname, 'fixtures'),
devServerPublicPathRoute: '/test-public-path', // This will be overridden by makeWebpackConfig.ts
} as Cypress.PluginConfigOptions,
devServerEvents: new EventEmitter(),
webpackConfig: {
plugins: [new FromInlineWebpackConfig()],
},
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: 5,
webpackDevServer: VERSION,
}),
})
expect(actual.plugins.map((p) => p.constructor.name)).to.have.members(
['CypressCTWebpackPlugin', 'HtmlWebpackPlugin', 'FromInlineWebpackConfig'],
)
})
it('calls webpackConfig if it is a function, passing in the base config', async () => {
const testPlugin = new IgnorePlugin({
contextRegExp: /aaa/,
resourceRegExp: /bbb/,
})
const modifyConfig = sinon.spy(async () => {
return {
plugins: [testPlugin],
}
})
const devServerConfig: WebpackDevServerConfig = {
specs: [],
cypressConfig: {
isTextTerminal: false,
projectRoot: '.',
supportFile: '/support.js',
devServerPublicPathRoute: '/test-public-path', // This will be overridden by makeWebpackConfig.ts
} as Cypress.PluginConfigOptions,
webpackConfig: modifyConfig,
devServerEvents: new EventEmitter(),
}
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult: createModuleMatrixResult({
webpack: VERSION,
webpackDevServer: VERSION,
}),
})
expect(actual.plugins.length).to.eq(3)
expect(modifyConfig).to.have.been.called
// merged plugins get added at the top of the chain by default
// should be merged, not overriding existing plugins
expect(actual.plugins[0].constructor.name).to.eq('IgnorePlugin')
expect(actual.plugins[1].constructor.name).to.eq('HtmlWebpackPlugin')
expect(actual.plugins[2].constructor.name).to.eq('CypressCTWebpackPlugin')
})
})
})
})
describe('file watching', () => {
let sourceWebpackModulesResult: SourceRelativeWebpackResult
let devServerConfig: WebpackDevServerConfig
beforeEach(() => {
devServerConfig = {
specs: [],
cypressConfig: {
projectRoot: '.',
devServerPublicPathRoute: '/test-public-path',
} as Cypress.PluginConfigOptions,
webpackConfig: {
entry: { main: 'src/index.js' },
},
devServerEvents: new EventEmitter(),
}
})
describe('webpack-dev-server v3', () => {
beforeEach(() => {
sourceWebpackModulesResult = createModuleMatrixResult({
webpack: 4,
webpackDevServer: 4,
})
})
it('is disabled in run mode', async () => {
devServerConfig.cypressConfig.isTextTerminal = true
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult,
})
expect(actual.watchOptions.ignored).to.eql('**/*')
})
it('uses defaults in open mode', async () => {
devServerConfig.cypressConfig.isTextTerminal = false
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult,
})
expect(actual.watchOptions?.ignored).to.be.undefined
})
})
describe('webpack-dev-server v4', () => {
beforeEach(() => {
sourceWebpackModulesResult = createModuleMatrixResult({
webpack: 5,
webpackDevServer: 4,
})
})
it('is disabled in run mode', async () => {
devServerConfig.cypressConfig.isTextTerminal = true
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult,
})
expect(actual.watchOptions.ignored).to.eql('**/*')
})
it('uses defaults in open mode', async () => {
devServerConfig.cypressConfig.isTextTerminal = false
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult,
})
expect(actual.watchOptions?.ignored).to.be.undefined
})
})
describe('webpack-dev-server v5', () => {
beforeEach(() => {
sourceWebpackModulesResult = createModuleMatrixResult({
webpack: 5,
webpackDevServer: 5,
})
})
it('is disabled in run mode', async () => {
devServerConfig.cypressConfig.isTextTerminal = true
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult,
})
expect(actual.watchOptions.ignored).to.eql('**/*')
})
it('uses defaults in open mode', async () => {
devServerConfig.cypressConfig.isTextTerminal = false
const actual = await makeWebpackConfig({
devServerConfig,
sourceWebpackModulesResult,
})
expect(actual.watchOptions?.ignored).to.be.undefined
})
})
})
})
| cypress/npm/webpack-dev-server/test/makeWebpackConfig.spec.ts/0 | {
"file_path": "cypress/npm/webpack-dev-server/test/makeWebpackConfig.spec.ts",
"repo_id": "cypress",
"token_count": 6353
} | 57 |
const { expect } = require('chai')
const preprocessor = require('../../dist/index')
describe('typescript ./dist output', () => {
it('builds dist correctly', () => {
expect(preprocessor).to.be.a('function')
expect(preprocessor).to.have.property('defaultOptions')
})
})
| cypress/npm/webpack-preprocessor/test/unit/dist.spec.ts/0 | {
"file_path": "cypress/npm/webpack-preprocessor/test/unit/dist.spec.ts",
"repo_id": "cypress",
"token_count": 91
} | 58 |
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json'
import { getPathForPlatform } from '../../src/paths'
function validateCreateFromVueComponentCard (beforeEachFn: () => void, expectedSpecPath: string) {
beforeEach(beforeEachFn)
it('Shows create from component card for Vue projects', () => {
cy.get('@ComponentCard')
.within(() => {
cy.findByRole('button', {
name: 'Create from component',
}).should('be.visible')
.and('not.be.disabled')
})
})
it('Can be closed with the x button', () => {
cy.get('@ComponentCard').click()
cy.findByRole('button', { name: 'Close' }).as('DialogCloseButton')
cy.get('@DialogCloseButton').click()
cy.findByRole('dialog', {
name: 'Choose a component',
}).should('not.exist')
})
it('Lists Vue components in the project', () => {
cy.get('@ComponentCard').click()
cy.findByText('2 matches').should('be.visible')
cy.findByText('App').should('be.visible')
cy.findByText('HelloWorld').should('be.visible')
})
it('Allows for the user to search through their components', () => {
cy.get('@ComponentCard').click()
cy.findByText('*.vue').should('be.visible')
cy.findByText('2 matches').should('be.visible')
cy.findByLabelText('file-name-input').type('HelloWorld')
cy.findByText('HelloWorld').should('be.visible')
cy.findByText('1 of 2 matches').should('be.visible')
cy.findByText('App').should('not.exist')
})
it('shows success modal when component spec is created', () => {
cy.get('@ComponentCard').click()
cy.findByText('HelloWorld').should('be.visible').click()
cy.findByRole('dialog', {
name: defaultMessages.createSpec.successPage.header,
}).as('SuccessDialog').within(() => {
cy.contains(getPathForPlatform(expectedSpecPath)).should('be.visible')
cy.findByRole('button', { name: 'Close' }).should('be.visible')
cy.findByRole('link', { name: 'Okay, run the spec' })
.should('have.attr', 'href', `#/specs/runner?file=${expectedSpecPath}`)
cy.findByRole('button', { name: 'Create another spec' }).click()
})
// 'Create from component' card appears again when the user selects "create another spec"
cy.findByText('Create from component').should('be.visible')
})
it('runs generated spec', () => {
cy.get('@ComponentCard').click()
cy.findByText('HelloWorld').should('be.visible').click()
cy.findByRole('dialog', {
name: defaultMessages.createSpec.successPage.header,
}).as('SuccessDialog').within(() => {
cy.contains(getPathForPlatform(expectedSpecPath)).should('be.visible')
cy.findByRole('button', { name: 'Close' }).should('be.visible')
cy.findByRole('link', { name: 'Okay, run the spec' })
.should('have.attr', 'href', `#/specs/runner?file=${expectedSpecPath}`).click()
})
cy.waitForSpecToFinish({ passCount: 1 })
})
}
function validateCreateFromReactComponentCard (beforeEachFn: () => void, expectedSpecPath: string) {
beforeEach(beforeEachFn)
it('Shows create from component card for React projects', () => {
cy.get('@ComponentCard')
.within(() => {
cy.findByRole('button', {
name: 'Create from component',
}).should('be.visible')
.and('not.be.disabled')
})
})
it('Can be closed with the x button', () => {
cy.get('@ComponentCard').click()
cy.findByRole('button', { name: 'Close' }).as('DialogCloseButton')
cy.get('@DialogCloseButton').click()
cy.findByRole('dialog', {
name: 'Choose a component',
}).should('not.exist')
})
it('Lists files in the project', () => {
cy.get('@ComponentCard').click()
cy.findByText('5 matches').should('be.visible')
cy.findByText('App').should('be.visible')
cy.findByText('index').should('be.visible')
})
it('Allows for the user to search through their components', () => {
cy.get('@ComponentCard').click()
cy.findByText('*.{js,jsx,tsx}').should('be.visible')
cy.findByText('5 matches').should('be.visible')
cy.findByLabelText('file-name-input').type('App')
cy.findByText('App').should('be.visible')
cy.findByText('1 of 5 matches').should('be.visible')
cy.findByText('index').should('not.exist')
cy.findByText('component').should('not.exist')
})
it('shows \'No components found\' if there are no exported components', () => {
cy.get('@ComponentCard').click()
cy.findByText('index').should('be.visible').click()
cy.findByTestId('react-component-row').should('not.exist')
cy.contains('No components found').should('be.visible')
})
it('shows \'Unable to parse file\' if there was an error parsing the file', () => {
cy.get('@ComponentCard').click()
// This component has a syntax error so we will fail to parse it
cy.findByText('Invalid').should('be.visible').click()
cy.findByTestId('react-component-row').should('not.exist')
cy.contains('Unable to parse file').should('be.visible')
})
it('shows success modal when component spec is created', () => {
cy.get('@ComponentCard').click()
// Expand the row
cy.findByText('App').should('be.visible').click()
// Click on 'app' component
cy.findByTestId('react-component-row').should('contain', 'App').click()
cy.findByRole('dialog', {
name: defaultMessages.createSpec.successPage.header,
}).as('SuccessDialog').within(() => {
cy.contains(getPathForPlatform(expectedSpecPath)).should('be.visible')
cy.findByRole('button', { name: 'Close' }).should('be.visible')
cy.findByRole('link', { name: 'Okay, run the spec' })
.should('have.attr', 'href', `#/specs/runner?file=${expectedSpecPath}`)
cy.findByRole('button', { name: 'Create another spec' }).click()
})
// 'Create from component' card appears again when the user selects "create another spec"
cy.findByText('Create from component').should('be.visible')
})
it('runs generated spec', () => {
cy.get('@ComponentCard').click()
// Expand the row
cy.findByText('App').should('be.visible').click()
// Click on 'app' component
cy.findByTestId('react-component-row').should('contain', 'App').click()
cy.findByRole('dialog', {
name: defaultMessages.createSpec.successPage.header,
}).as('SuccessDialog').within(() => {
cy.contains(getPathForPlatform(expectedSpecPath)).should('be.visible')
cy.findByRole('button', { name: 'Close' }).should('be.visible')
// There appears to be a race condition here where sometimes we try to run the spec
// before the file has been written to. Waiting here for 1 second resolves the issue.
cy.wait(2000)
cy.findByRole('link', { name: 'Okay, run the spec' })
.should('have.attr', 'href', `#/specs/runner?file=${expectedSpecPath}`).click()
})
cy.waitForSpecToFinish({ passCount: 1 })
})
}
describe('Create from component card', () => {
context('Vue', () => {
context('project with default spec pattern', () => {
validateCreateFromVueComponentCard(() => {
cy.scaffoldProject('no-specs-vue-2')
cy.openProject('no-specs-vue-2', ['--component'])
cy.startAppServer('component')
cy.visitApp()
cy.specsPageIsVisible('new-project')
cy.findAllByTestId('card').eq(0).as('ComponentCard')
}, 'src/components/HelloWorld.cy.js')
})
context('project with custom spec pattern', () => {
validateCreateFromVueComponentCard(() => {
cy.scaffoldProject('no-specs-vue-2')
cy.openProject('no-specs-vue-2', ['--config-file', 'cypress-custom-spec-pattern.config.js', '--component'])
cy.startAppServer('component')
cy.visitApp()
cy.specsPageIsVisible('no-specs')
cy.findByText('New spec').click()
cy.findAllByTestId('card').eq(0).as('ComponentCard')
}, 'src/specs-folder/HelloWorld.cy.js')
})
})
context('React', () => {
context('project with default spec pattern', () => {
validateCreateFromReactComponentCard(() => {
cy.scaffoldProject('no-specs')
cy.openProject('no-specs', ['--component'])
cy.startAppServer('component')
cy.visitApp()
cy.specsPageIsVisible('new-project')
cy.findAllByTestId('card').eq(0).as('ComponentCard')
}, 'src/App.cy.jsx')
})
context('project with custom spec pattern', () => {
validateCreateFromReactComponentCard(() => {
cy.scaffoldProject('no-specs')
cy.openProject('no-specs', ['--config-file', 'cypress-custom-spec-pattern.config.ts', '--component'])
cy.startAppServer('component')
cy.visitApp()
cy.specsPageIsVisible('no-specs')
cy.findByText('New spec').click()
cy.findAllByTestId('card').eq(0).as('ComponentCard')
}, 'src/specs-folder/App.cy.jsx')
})
})
})
| cypress/packages/app/cypress/e2e/create-from-component.cy.ts/0 | {
"file_path": "cypress/packages/app/cypress/e2e/create-from-component.cy.ts",
"repo_id": "cypress",
"token_count": 3337
} | 59 |
import type { fixtureDirs } from '@tooling/system-tests'
type ProjectDirs = typeof fixtureDirs
const PROJECTS: {projectName: ProjectDirs[number], test: string}[] = [
// TODO: Flaky { projectName: 'angular-14', test: 'app.component' },
// TODO: Flaky. { projectName: 'vueclivue2-configured', test: 'HelloWorld.cy' },
{ projectName: 'react-vite-ts-configured', test: 'App.cy' },
{ projectName: 'react18', test: 'App.cy' },
{ projectName: 'create-react-app-configured', test: 'App.cy' },
{ projectName: 'vueclivue3-configured', test: 'HelloWorld.cy' },
{ projectName: 'nuxtjs-vue2-configured', test: 'Tutorial.cy' },
]
// These are especially flaky on windows, skipping them there.
const describeSkipIfWindows = Cypress.platform === 'win32' ? describe.skip : describe
// TODO: Add these tests to another cy-in-cy framework test to reduce CI cost as these scaffolding is expensive
for (const { projectName, test } of PROJECTS) {
// Flaky, especially on windows. Issue to improve these tests: https://github.com/cypress-io/cypress/issues/24579
describeSkipIfWindows(`CT Mount ${projectName}`, { viewportWidth: 1500, defaultCommandTimeout: 30000 }, () => {
beforeEach(() => {
cy.scaffoldProject(projectName)
cy.findBrowsers()
}),
it(`While hovering on Mount(), shows component on AUT for ${projectName}`, () => {
if (`${projectName}` === 'react18') {
cy.openProject(projectName, ['--config-file', 'cypress-vite-default.config.ts', '--component'])
cy.startAppServer('component')
cy.visitApp()
cy.specsPageIsVisible()
cy.contains(`${test}`).click()
cy.waitForSpecToFinish(undefined)
cy.get('.collapsible-header-inner:first').click().get('.command.command-name-mount > .command-wrapper').click().then(() => {
cy.get('iframe.aut-iframe').its('0.contentDocument.body').then(cy.wrap).within(() => {
cy.get('[data-cy-root]').children().should('have.length.at.least', 1)
})
})
} else {
cy.openProject(projectName, ['--component'])
cy.startAppServer('component')
cy.visitApp()
cy.specsPageIsVisible()
cy.contains(`${test}`).click()
cy.waitForSpecToFinish(undefined)
cy.get('.command.command-name-mount > .command-wrapper').click().then(() => {
cy.get('iframe.aut-iframe').its('0.contentDocument.body').then(cy.wrap).within(() => {
cy.get('[data-cy-root]').children().should('have.length.at.least', 1)
})
})
}
})
})
}
| cypress/packages/app/cypress/e2e/runner/reporter-ct-mount-hover.cy.ts/0 | {
"file_path": "cypress/packages/app/cypress/e2e/runner/reporter-ct-mount-hover.cy.ts",
"repo_id": "cypress",
"token_count": 1013
} | 60 |
{
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents simple retry #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents test retry with hooks #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents test retry with [only] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents can retry from [beforeEach] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents can retry from [afterEach] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r6",
"title": "suite 2",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r6",
"title": "suite 2",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r8",
"title": "suite 3",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r9",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r9",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r8",
"title": "suite 3",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents cant retry from [before] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"attempts": 1,
"strategy": "detect-flake-and-pass-on-threshold",
"outerStatus": "failed",
"shouldAttemptsContinue": false
},
"id": "r3",
"title": "\"before all\" hook for \"test 1\"",
"hookName": "before all",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"originalTitle": "\"before all\" hook",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents three tests with retry #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 7,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 6,
"retries": 6,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-and-pass-on-threshold\": retries mochaEvents cleanses errors before emitting does not try to serialize error with err.actual as DOM node #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-and-pass-on-threshold",
"shouldAttemptsContinue": false,
"attempts": 6,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 5,
"retries": 5,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents simple retry #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents test retry with hooks #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents test retry with [only] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents can retry from [beforeEach] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents can retry from [afterEach] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r6",
"title": "suite 2",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r6",
"title": "suite 2",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r8",
"title": "suite 3",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r9",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r9",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r8",
"title": "suite 3",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents cant retry from [before] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"attempts": 1,
"strategy": "detect-flake-but-always-fail",
"outerStatus": "failed",
"shouldAttemptsContinue": false
},
"id": "r3",
"title": "\"before all\" hook for \"test 1\"",
"hookName": "before all",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"originalTitle": "\"before all\" hook",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents three tests with retry #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
null
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail\": retries mochaEvents cleanses errors before emitting does not try to serialize error with err.actual as DOM node #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents simple retry #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents test retry with hooks #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents test retry with [only] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents can retry from [beforeEach] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h3",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents can retry from [afterEach] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 8]"
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 2,
"outerStatus": "failed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 1,
"retries": 1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h6",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h5",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h6",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h5",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r6",
"title": "suite 2",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"hookName": "after each",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h7",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r7",
"order": 4,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 4]"
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h7",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r7",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r7",
"order": 4,
"title": "test 1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h7",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r6",
"title": "suite 2",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r8",
"title": "suite 3",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r9",
"order": 5,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r9",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r9",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": "relative/path/to/spec.js",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r8",
"title": "suite 3",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r9",
"order": 5,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents cant retry from [before] #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"attempts": 1,
"strategy": "detect-flake-but-always-fail",
"outerStatus": "failed",
"shouldAttemptsContinue": false
},
"id": "r3",
"title": "\"before all\" hook for \"test 1\"",
"hookName": "before all",
"hookId": "h1",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"originalTitle": "\"before all\" hook",
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"hookName": "before all",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"failedFromHookId": "h1",
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents three tests with retry #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"suite",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before all\" hook",
"hookName": "before all",
"hookId": "h1",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r3",
"order": 1,
"title": "test 1",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r3",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r3",
"order": 1,
"title": "test 1",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before all": [
{
"hookId": "h1",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r4",
"order": 2,
"title": "test 2",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 6]"
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r4",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
}
],
[
"mocha",
"test:before:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
},
{
"nextTestHasTestIsolationOn": true
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 3,
"outerStatus": "failed"
},
"id": "r4",
"order": 2,
"title": "test 2",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"final": true,
"currentRetry": 2,
"retries": 2,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r5",
"order": 3,
"title": "test 3",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"before each\" hook",
"hookName": "before each",
"hookId": "h2",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after each\" hook",
"hookName": "after each",
"hookId": "h4",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"hook end",
{
"id": "r5",
"title": "\"after all\" hook",
"hookName": "after all",
"hookId": "h3",
"pending": false,
"body": "[body]",
"type": "hook",
"duration": "match.number",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"pass",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r2",
"title": "suite 1",
"root": false,
"pending": false,
"type": "suite",
"file": null,
"invocationDetails": "{Object 9}",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 1,
"outerStatus": "passed"
},
"id": "r5",
"order": 3,
"title": "test 3",
"state": "passed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"before each": [
{
"hookId": "h2",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
},
"after each": [
{
"hookId": "h4",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
],
"after all": [
{
"hookId": "h3",
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
]
},
"file": null,
"invocationDetails": "{Object 9}",
"final": true,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
],
"\"detect-flake-but-always-fail-stop-any-passed\": retries mochaEvents cleanses errors before emitting does not try to serialize error with err.actual as DOM node #1": [
[
"mocha",
"start",
{
"start": "match.date"
}
],
[
"mocha",
"suite",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"invocationDetails": "{Object 9}",
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"invocationDetails": "{Object 9}",
"final": false,
"currentRetry": 0,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 1,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 1,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 2,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 2,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 3,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 3,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 4,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 4,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 5,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 5,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 6,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 6,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 7,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 7,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 8,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"retry",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test:after:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": false,
"currentRetry": 8,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:before:run:async",
{
"id": "r2",
"order": 1,
"title": "visits",
"pending": false,
"body": "[body]",
"type": "test",
"wallClockStartedAt": "match.date",
"file": null,
"currentRetry": 9,
"retries": 9,
"_slow": 10000,
"invocationDetails": "{Object 9}",
"hooks": "[Array 2]"
}
],
[
"mocha",
"fail",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
},
{
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
}
],
[
"mocha",
"test end",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"test:after:run:async",
{
"_cypressTestStatusInfo": {
"strategy": "detect-flake-but-always-fail",
"shouldAttemptsContinue": false,
"attempts": 10,
"outerStatus": "failed"
},
"id": "r2",
"order": 1,
"title": "visits",
"err": {
"message": "[error message]",
"name": "AssertionError",
"stack": "match.string",
"parsedStack": "match.array"
},
"state": "failed",
"pending": false,
"body": "[body]",
"type": "test",
"duration": "match.number",
"wallClockStartedAt": "match.date",
"wallClockDuration": "match.number",
"timings": {
"lifecycle": "match.number",
"test": {
"fnDuration": "match.number",
"afterFnDuration": "match.number"
}
},
"file": null,
"final": true,
"currentRetry": 9,
"retries": 9,
"_slow": 10000
}
],
[
"mocha",
"suite end",
{
"id": "r1",
"title": "",
"root": true,
"pending": false,
"type": "suite",
"file": "relative/path/to/spec.js",
"retries": -1,
"_slow": 10000
}
],
[
"mocha",
"end",
{
"end": "match.date"
}
]
]
} | cypress/packages/app/cypress/e2e/runner/snapshots/retries.experimentalRetries.mochaEvents.cy.ts.json/0 | {
"file_path": "cypress/packages/app/cypress/e2e/runner/snapshots/retries.experimentalRetries.mochaEvents.cy.ts.json",
"repo_id": "cypress",
"token_count": 774827
} | 61 |
describe('App: Spec List - Flaky Indicator', () => {
beforeEach(() => {
cy.scaffoldProject('cypress-in-cypress')
cy.openProject('cypress-in-cypress')
cy.startAppServer('e2e')
cy.loginUser()
cy.withCtx((ctx, o) => {
// Must have a cloud project ID in order to fetch flaky data
o.sinon.stub(ctx.project, 'projectId').resolves('abc123')
// Must have an active Git branch in order to fetch flaky data (see @include($hasBranch) restriction)
o.sinon.stub(ctx.lifecycleManager.git!, 'currentBranch').value('fakeBranch')
// Don't show the "enable notifications" banner
o.sinon.stub(ctx.coreData.localSettings.preferences, 'desktopNotificationsEnabled').value(false)
ctx.git?.__setGitHashesForTesting(['commit1', 'commit2'])
})
cy.remoteGraphQLIntercept(async (obj) => {
await new Promise((r) => setTimeout(r, 20))
if (obj.result.data && 'cloudSpecByPath' in obj.result.data) {
if (obj.variables.specPath.includes('123.spec.js')) {
obj.result.data.cloudSpecByPath = {
__typename: 'CloudProjectSpec',
id: `id${obj.variables.specPath}`,
retrievedAt: new Date().toISOString(),
averageDurationForRunIds: null,
specRunsForRunIds: [],
isConsideredFlakyForRunIds: true,
flakyStatusForRunIds: {
__typename: 'CloudProjectSpecFlakyStatus',
severity: 'LOW',
flakyRuns: 2,
flakyRunsWindow: 50,
lastFlaky: 2,
dashboardUrl: '#',
},
}
}
}
if (obj.operationName === 'RelevantRunsDataSource_RunsByCommitShas') {
obj.result.data = {
'cloudProjectBySlug': {
'__typename': 'CloudProject',
'id': 'Q2xvdWRQcm9qZWN0OnZncXJ3cA==',
'runsByCommitShas': [
{
'id': 'Q2xvdWRSdW46TUdWZXhvQkRPNg==',
'runNumber': 136,
'status': 'FAILED',
'commitInfo': {
'sha': 'commit2',
'__typename': 'CloudRunCommitInfo',
},
'__typename': 'CloudRun',
},
{
'id': 'Q2xvdWRSdW46ckdXb2wzbzJHVg==',
'runNumber': 134,
'status': 'PASSED',
'commitInfo': {
'sha': '37fa5bfb9e774d00a03fe8f0d439f06ec70f533d',
'__typename': 'CloudRunCommitInfo',
},
'__typename': 'CloudRun',
},
],
},
'pollingIntervals': {
'runsByCommitShas': 30,
'__typename': 'CloudPollingIntervals',
},
}
}
return obj.result
})
cy.remoteGraphQLInterceptBatched(async (obj) => {
await new Promise((r) => setTimeout(r, 20))
if (obj.field === 'cloudSpecByPath') {
if (obj.variables.specPath.includes('123.spec.js')) {
return {
__typename: 'CloudProjectSpec',
id: `id${obj.variables.specPath}`,
retrievedAt: new Date().toISOString(),
averageDurationForRunIds: null,
specRunsForRunIds: [],
isConsideredFlakyForRunIds: true,
flakyStatusForRunIds: {
__typename: 'CloudProjectSpecFlakyStatus',
severity: 'LOW',
flakyRuns: 2,
flakyRunsWindow: 50,
lastFlaky: 2,
dashboardUrl: '#',
},
}
}
return {
__typename: 'CloudProjectSpec',
id: `id${obj.variables.specPath}`,
retrievedAt: new Date().toISOString(),
averageDurationForRunIds: null,
specRunsForRunIds: [],
isConsideredFlakyForRunIds: false,
flakyStatusForRunIds: null,
}
}
return obj.result
})
cy.visitApp()
cy.specsPageIsVisible()
cy.verifyE2ESelected()
})
it('shows the "Flaky" badge on specs considered flaky', () => {
let nonFlakyCounter = 0
let flakyCounter = 0
cy.findAllByTestId('spec-item').each((item) => {
const specName = item.text()
const isFlaky = specName.includes('123.spec.js')
cy.wrap(item).find('[data-cy="flaky-badge"]')
.should(isFlaky ? 'be.visible' : 'not.exist')
isFlaky ? flakyCounter++ : nonFlakyCounter++
})
.then(() => {
expect(nonFlakyCounter).to.be.greaterThan(0, 'Test fails to validate flaky badge does not appear on non-flaky tests')
expect(flakyCounter).to.be.greaterThan(0, 'Test fails to validate flaky badge does appear on flaky tests')
})
})
it('shows correct data on tooltip for flaky tests', () => {
cy.contains('[data-cy="spec-item"]', '123.spec.js').find('.v-popper').trigger('mouseenter')
cy.findByTestId('flaky-spec-summary').within(() => {
cy.contains('123.spec.js')
cy.contains('Low')
cy.contains('4% flaky rate')
cy.contains('2 flaky runs / 50 total')
cy.contains('Last flaky 2 runs ago')
})
})
})
| cypress/packages/app/cypress/e2e/specs_list_flaky.cy.ts/0 | {
"file_path": "cypress/packages/app/cypress/e2e/specs_list_flaky.cy.ts",
"repo_id": "cypress",
"token_count": 2609
} | 62 |
import type { SinonStub } from 'sinon'
import defaultMessages from '@packages/frontend-shared/src/locales/en-US.json'
import { CYPRESS_REMOTE_MANIFEST_URL, NPM_CYPRESS_REGISTRY_URL } from '@packages/types'
import type Sinon from 'sinon'
import { dayjs } from '../../src/runs/utils/day'
const pkg = require('@packages/root')
const loginText = defaultMessages.topNav.login
const isWindows = Cypress.platform === 'win32'
beforeEach(() => {
cy.clock(Date.UTC(2021, 9, 30), ['Date'])
})
describe('App Top Nav Workflows', () => {
beforeEach(() => {
cy.scaffoldProject('launchpad')
})
describe('Page Name', () => {
it('shows the current page name in the top nav', () => {
cy.findBrowsers()
cy.openProject('launchpad')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('app-header-bar').should('be.visible').and('contain', 'Specs')
})
})
describe('Browser List', () => {
context('with command line args', () => {
it('shows current browser when launched with browser option', () => {
cy.findBrowsers()
cy.openProject('launchpad', ['--browser', 'firefox'])
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('top-nav-active-browser-icon')
.should('have.attr', 'src')
.and('contain', 'firefox')
cy.findByTestId('top-nav-active-browser').should('contain', 'Firefox 5')
})
})
context('without command line args', () => {
beforeEach(() => {
cy.findBrowsers({
filter: (browser) => {
return Cypress._.includes(['chrome', 'firefox', 'electron', 'edge'], browser.name) && browser.channel === 'stable'
},
})
cy.openProject('launchpad')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
})
it('shows the current browser in the top nav browser list button', () => {
cy.findByTestId('top-nav-active-browser-icon')
.should('have.attr', 'src')
.and('contain', 'chrome')
cy.findByTestId('top-nav-active-browser').should('contain', 'Chrome 1')
})
it('shows list of browser options in dropdown when selected', () => {
cy.findByTestId('top-nav-active-browser').click()
cy.findAllByTestId('top-nav-browser-list-item').as('browserItems').should('have.length', 4)
cy.get('@browserItems').eq(0)
.should('contain', 'Chrome')
.and('contain', 'Version 1')
.findByTestId('top-nav-browser-list-selected-item')
.should('exist')
cy.get('@browserItems').eq(1)
.should('contain', 'Edge')
.and('contain', 'Version 8')
.findByTestId('top-nav-browser-list-selected-item')
.should('not.exist')
cy.get('@browserItems').eq(2)
.should('contain', 'Electron')
.and('contain', 'Version 12')
.findByTestId('top-nav-browser-list-selected-item')
.should('not.exist')
cy.get('@browserItems').eq(3)
.should('contain', 'Firefox')
.and('contain', 'Version 5')
.findByTestId('top-nav-browser-list-selected-item')
.should('not.exist')
})
it('performs mutations to update and relaunch browser', () => {
cy.findByTestId('top-nav-active-browser').click()
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx.actions.browser, 'setActiveBrowserById')
o.sinon.stub(ctx.actions.project, 'launchProject').resolves()
})
cy.findAllByTestId('top-nav-browser-list-item').eq(1).click()
cy.withCtx((ctx, o) => {
const browserId = (ctx.actions.browser.setActiveBrowserById as SinonStub).args[0][0]
const genId = ctx.fromId(browserId, 'Browser')
expect(ctx.actions.browser.setActiveBrowserById).to.have.been.calledWith(browserId)
expect(genId).to.eql('edge-chromium-stable')
expect(ctx.actions.project.launchProject).to.have.been.calledWith(
ctx.coreData.currentTestingType, { shouldLaunchNewTab: false }, '',
)
})
})
})
})
describe('Cypress Version', () => {
context('user version current', () => {
it('renders link to external docs if version is current', () => {
cy.findBrowsers()
cy.withCtx(async (ctx, o) => {
o.sinon.stub(ctx.versions, 'versionData').resolves({
current: {
id: '1',
version: '10.0.0',
released: '2021-10-15T21:38:59.983Z',
},
latest: {
id: '1',
version: '10.0.0',
released: '2021-10-25T21:38:59.983Z',
},
})
})
cy.openProject('launchpad')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('app-header-bar').validateExternalLink({
name: 'v10.0.0',
href: 'https://on.cypress.io/changelog#10-0-0',
})
})
})
context('user version outdated', () => {
beforeEach(() => {
cy.findBrowsers()
cy.withCtx(async (ctx, o) => {
const currRelease = new Date(Date.UTC(2021, 9, 30))
const prevRelease = new Date(Date.UTC(2021, 9, 29))
o.sinon.stub(ctx.versions, 'versionData').resolves({
current: {
id: '1',
version: '10.0.0',
released: prevRelease.toISOString(),
},
latest: {
id: '2',
version: '10.1.0',
released: currRelease.toISOString(),
},
})
})
cy.openProject('launchpad')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
})
it('shows dropdown with version info if user version is outdated', () => {
cy.findByTestId('top-nav-version-list').contains('v10.0.0 • Upgrade').click()
cy.findByTestId('update-hint').within(() => {
cy.validateExternalLink({ name: '10.1.0', href: 'https://on.cypress.io/changelog#10-1-0' })
cy.findByText('Latest').should('be.visible')
})
cy.findByTestId('cypress-update-popover').findByRole('button', { name: 'Update to 10.1.0' })
cy.findByTestId('current-hint').within(() => {
cy.validateExternalLink({ name: '10.0.0', href: 'https://on.cypress.io/changelog#10-0-0' })
cy.findByText('Installed').should('be.visible')
})
cy.findByTestId('cypress-update-popover').validateExternalLink({
name: 'See all releases',
href: 'https://on.cypress.io/changelog',
})
})
it('hides dropdown when version in header is clicked', () => {
cy.findByTestId('cypress-update-popover').findAllByRole('button').first().as('topNavVersionButton').click()
cy.get('@topNavVersionButton').should('have.attr', 'aria-expanded', 'true')
cy.get('@topNavVersionButton').click()
cy.get('@topNavVersionButton').should('have.attr', 'aria-expanded', 'false')
})
it('shows upgrade modal when update button is pressed', () => {
cy.findByTestId('top-nav-version-list').contains('v10.0.0 • Upgrade').click()
cy.findByTestId('cypress-update-popover').findByRole('button', { name: 'Update to 10.1.0' }).click()
cy.findByRole('dialog', { name: 'Upgrade to Cypress 10.1.0' }).as('upgradeModal').within(() => {
cy.contains('You are currently running Version 10.0.0 of Cypress').should('be.visible')
cy.findByDisplayValue('npm install -D cypress@10.1.0').should('be.visible')
cy.findByRole('button', { name: 'Close' }).click()
})
cy.findAllByRole('dialog').should('not.exist')
})
})
context('version data unreachable', () => {
it('treats unreachable data as current version', () => {
cy.withCtx((ctx, o) => {
(ctx.util.fetch as Sinon.SinonStub).restore()
const oldFetch = ctx.util.fetch
o.sinon.stub(ctx.util, 'fetch').callsFake(async (url: RequestInfo | URL, init?: RequestInit) => {
await new Promise((resolve) => setTimeout(resolve, 500))
if ([CYPRESS_REMOTE_MANIFEST_URL, NPM_CYPRESS_REGISTRY_URL].includes(String(url))) {
throw new Error(String(url))
}
return oldFetch(url, init)
})
})
cy.findBrowsers()
cy.openProject('launchpad')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('app-header-bar').validateExternalLink({
name: `v${pkg.version}`,
href: `https://on.cypress.io/changelog#${pkg.version.replaceAll('.', '-')}`,
})
})
})
})
describe('Docs', () => {
beforeEach(() => {
cy.findBrowsers()
cy.openProject('launchpad')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('app-header-bar').findByRole('button', { name: 'Docs', expanded: false }).as('docsButton')
})
it('shows popover with additional doc links', () => {
cy.get('@docsButton').click().should('have.attr', 'aria-expanded', 'true')
cy.findByRole('heading', { name: 'Getting started', level: 2 })
cy.findByRole('heading', { name: 'References', level: 2 })
cy.findByRole('heading', { name: 'Run in CI/CD', level: 2 })
const expectedLinks = [
{
name: 'Write your first test',
href: 'https://on.cypress.io/writing-first-test?utm_medium=Docs+Menu&utm_content=First+Test&utm_source=Binary%3A+App',
},
{
name: 'Testing your app',
href: 'https://on.cypress.io/testing-your-app?utm_medium=Docs+Menu&utm_content=Testing+Your+App&utm_source=Binary%3A+App',
},
{
name: 'Organizing tests',
href: 'https://on.cypress.io/writing-and-organizing-tests?utm_medium=Docs+Menu&utm_content=Organizing+Tests&utm_source=Binary%3A+App',
},
{
name: 'Best practices',
href: 'https://on.cypress.io/best-practices?utm_medium=Docs+Menu&utm_content=Best+Practices&utm_source=Binary%3A+App',
},
{
name: 'Configuration',
href: 'https://on.cypress.io/configuration?utm_medium=Docs+Menu&utm_content=Configuration&utm_source=Binary%3A+App',
},
{
name: 'API',
href: 'https://on.cypress.io/api?utm_medium=Docs+Menu&utm_content=API&utm_source=Binary%3A+App',
},
]
expectedLinks.forEach((link) => {
cy.validateExternalLink(link)
})
})
it('growth prompts appear and call SetPromptShown mutation with the correct payload', () => {
cy.get('@docsButton').click()
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx.actions.project, 'setPromptShown')
})
cy.findByRole('button', { name: 'Set up CI' }).click()
cy.findByText('Configure CI').should('be.visible')
cy.findByRole('button', { name: 'Close' }).click()
cy.withCtx((ctx) => {
expect(ctx.actions.project.setPromptShown).to.have.been.calledWith('ci1')
})
cy.findByRole('button', { name: 'Run tests faster' }).click()
cy.findByText('Run tests faster in CI').should('be.visible')
cy.findByRole('button', { name: 'Close' }).click()
cy.withCtx((ctx) => {
expect(ctx.actions.project.setPromptShown).to.have.been.calledWith('orchestration1')
})
})
})
describe('Login', () => {
context('user logged in at launch', () => {
beforeEach(() => {
cy.findBrowsers()
cy.openProject('launchpad')
cy.startAppServer()
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('app-header-bar').findByRole('button', { name: 'Profile and logout', expanded: false }).as('profileButton')
})
it('shows user in top nav when logged in', () => {
cy.get('@profileButton').click()
cy.findByTestId('login-panel').contains('Test User').should('be.visible')
cy.findByTestId('login-panel').contains('test@example.com').should('be.visible')
cy.validateExternalLink({
name: 'Profile Settings',
href: 'https://on.cypress.io/dashboard/profile',
})
cy.findByTestId('user-avatar-panel').should('be.visible')
})
it('replaces user avatar after logout', () => {
cy.get('@profileButton').click()
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx._apis.authApi, 'logOut').callsFake(async () => {
// resolves
})
})
cy.findByRole('button', { name: 'Log out' }).click()
cy.findByTestId('app-header-bar').findByText('Log in').should('be.visible')
})
it('logouts user if cloud request returns unauthorized', () => {
cy.scaffoldProject('component-tests')
cy.openProject('component-tests', ['--component'])
cy.startAppServer('component')
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
cy.remoteGraphQLIntercept((obj) => {
if (obj.result.data?.cloudProjectBySlug) {
return new obj.Response('Unauthorized', { status: 401 })
}
return obj.result
})
cy.get('@profileButton').click()
cy.findByTestId('login-panel').contains('Test User').should('be.visible')
cy.findByTestId('login-panel').contains('test@example.com').should('be.visible')
cy.findByTestId('sidebar-link-runs-page').click()
cy.findByTestId('app-header-bar').within(() => {
cy.findByTestId('user-avatar-title').should('not.exist')
cy.findByRole('button', { name: 'Log in' })
})
})
})
context('user not logged in', () => {
const mockUser = {
authToken: 'test1',
email: 'test_user_a@example.com',
name: 'Test User A',
}
const mockUserNoName = {
authToken: 'test22',
email: 'test_user_b@example.com',
}
const mockLogInActionsForUser = (user) => {
cy.withCtx(async (ctx, options) => {
ctx.coreData.app.browserStatus = 'open'
options.sinon.stub(ctx._apis.electronApi, 'isMainWindowFocused').returns(false)
options.sinon.stub(ctx._apis.authApi, 'logIn').callsFake(async (onMessage) => {
setTimeout(() => {
onMessage({ browserOpened: true })
}, 500)
return new Promise((resolve) => {
setTimeout(() => {
resolve(options.user)
}, 2000)
})
})
}, { user })
}
function logIn ({ expectedNextStepText, displayName }) {
cy.findByTestId('app-header-bar').within(() => {
cy.findByTestId('user-avatar-title').should('not.exist')
cy.findByRole('button', { name: 'Log in' }).click()
})
cy.findByRole('dialog', { name: 'Log in to Cypress' }).as('logInModal').within(() => {
cy.findByRole('button', { name: 'Log in' }).click()
// The Log in button transitions through a few states as the browser launch lifecycle completes
cy.findByRole('button', { name: 'Opening browser' }).should('be.visible').and('be.disabled')
cy.findByRole('button', { name: 'Waiting for you to log in' }).should('be.visible').and('be.disabled')
})
cy.findByRole('dialog', { name: 'Login successful' }).within(() => {
cy.findByText('You are now logged in as', { exact: false }).should('be.visible')
cy.validateExternalLink({ name: displayName, href: 'https://on.cypress.io/dashboard/profile' })
// The dialog can be closed at this point by either the header close button or the Continue button
// The Continue button is tested here
cy.findByRole('button', { name: 'Close' }).should('be.visible').and('not.be.disabled')
cy.findByRole('button', { name: expectedNextStepText }).click()
})
}
context('with no project id', () => {
it('shows "connect project" button after login if no project id is set', () => {
cy.scaffoldProject('component-tests')
cy.openProject('component-tests', ['--config-file', 'cypressWithoutProjectId.config.js'])
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
cy.remoteGraphQLIntercept(async (obj) => {
if (obj.result.data?.cloudViewer) {
obj.result.data.cloudViewer.organizations = {
__typename: 'CloudOrganizationConnection',
id: 'test',
nodes: [{ __typename: 'CloudOrganization', id: '987' }],
}
}
return obj.result
})
mockLogInActionsForUser(mockUser)
logIn({ expectedNextStepText: 'Connect project', displayName: mockUser.name })
cy.withCtx((ctx, o) => {
// validate utmSource
expect((ctx._apis.authApi.logIn as SinonStub).lastCall.args[1]).to.eq('Binary: App')
// validate utmMedium
expect((ctx._apis.authApi.logIn as SinonStub).lastCall.args[2]).to.eq('Nav')
})
cy.findByRole('dialog', { name: 'Create project' }).should('be.visible')
})
})
context('when there is a project id', () => {
beforeEach(() => {
cy.findBrowsers()
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.visitApp()
cy.specsPageIsVisible()
})
it('shows log in modal workflow for user with name and email', () => {
mockLogInActionsForUser(mockUser)
logIn({ expectedNextStepText: 'Continue', displayName: mockUser.name })
cy.get('@logInModal').should('not.exist')
cy.findByTestId('app-header-bar').findByTestId('user-avatar-title').should('be.visible')
})
it('shows log in modal workflow for user with only email', () => {
mockLogInActionsForUser(mockUserNoName)
logIn({ expectedNextStepText: 'Continue', displayName: mockUserNoName.email })
cy.get('@logInModal').should('not.exist')
cy.findByTestId('app-header-bar').findByTestId('user-avatar-title').should('be.visible')
})
it('if the project has no runs, shows "record your first run" prompt after clicking', () => {
cy.remoteGraphQLIntercept((obj) => {
if (obj.result?.data?.cloudProjectBySlug?.runs?.nodes?.length) {
obj.result.data.cloudProjectBySlug.runs.nodes = []
}
return obj.result
})
mockLogInActionsForUser(mockUserNoName)
logIn({ expectedNextStepText: 'Continue', displayName: mockUserNoName.email })
cy.contains('[data-cy=standard-modal] h2', defaultMessages.specPage.banners.record.title).should('be.visible')
cy.contains('[data-cy=standard-modal]', defaultMessages.specPage.banners.record.content).should('be.visible')
cy.contains('button', 'Copy').should('be.visible')
})
it('shows correct error when browser cannot launch', () => {
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx._apis.authApi, 'logIn').callsFake(async (onMessage) => {
onMessage({
name: 'AUTH_COULD_NOT_LAUNCH_BROWSER',
message: 'http://127.0.0.1:0000/redirect-to-auth',
browserOpened: false,
})
throw new Error()
})
})
cy.findByTestId('app-header-bar').within(() => {
cy.findByTestId('user-avatar-title').should('not.exist')
cy.findByRole('button', { name: 'Log in' }).click()
})
cy.findByRole('dialog').within(() => {
cy.findByRole('button', { name: 'Log in' }).click()
cy.contains('http://127.0.0.1:0000/redirect-to-auth').should('be.visible')
cy.contains(loginText.titleBrowserError).should('be.visible')
cy.contains(loginText.bodyBrowserError).should('be.visible')
cy.contains(loginText.bodyBrowserErrorDetails).should('be.visible')
// in this state, there is no retry UI, we ask the user to visit the auth url on their own
cy.contains('button', loginText.actionTryAgain).should('not.be.visible')
cy.contains('button', loginText.actionCancel).should('not.be.visible')
})
})
it('shows correct error when error other than browser-launch happens', () => {
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx._apis.authApi, 'logIn').callsFake(async (onMessage) => {
onMessage({
name: 'AUTH_ERROR_DURING_LOGIN',
message: 'An unexpected error occurred',
browserOpened: false,
})
throw new Error()
})
})
cy.findByTestId('app-header-bar').within(() => {
cy.findByTestId('user-avatar-title').should('not.exist')
cy.findByRole('button', { name: 'Log in' }).click()
})
cy.findByRole('dialog').within(() => {
cy.findByRole('button', { name: 'Log in' }).click()
cy.contains(loginText.titleFailed).should('be.visible')
cy.contains(loginText.bodyError).should('be.visible')
cy.contains('An unexpected error occurred').should('be.visible')
cy.contains('button', loginText.actionTryAgain).should('be.visible').as('tryAgain')
cy.contains('button', loginText.actionCancel).should('be.visible')
})
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
cy.withCtx((ctx) => {
(ctx._apis.authApi.logIn as SinonStub).callsFake(async (onMessage) => {
onMessage({
name: 'AUTH_BROWSER_LAUNCHED',
message: '',
browserOpened: true,
})
return Promise.resolve()
})
})
cy.get('@tryAgain').click()
cy.findByRole('dialog', { name: loginText.titleInitial }).within(() => {
cy.contains(loginText.actionWaiting).should('be.visible')
})
})
it('cancel button correctly clears error state', () => {
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx._apis.authApi, 'logIn').callsFake(async (onMessage) => {
onMessage({
name: 'AUTH_ERROR_DURING_LOGIN',
message: 'An unexpected error occurred',
browserOpened: false,
})
throw new Error()
})
})
cy.findByTestId('app-header-bar').within(() => {
cy.findByTestId('user-avatar-title').should('not.exist')
cy.findByRole('button', { name: 'Log in' }).as('loginButton').click()
})
cy.findByRole('dialog').within(() => {
cy.findByRole('button', { name: 'Log in' }).click()
cy.contains(loginText.titleFailed).should('be.visible')
cy.contains(loginText.bodyError).should('be.visible')
cy.contains('An unexpected error occurred').should('be.visible')
})
// cy.percySnapshot() // TODO: restore when Percy CSS is fixed. See https://github.com/cypress-io/cypress/issues/23435
cy.findByRole('dialog', { name: loginText.titleFailed }).within(() => {
cy.contains('button', loginText.actionTryAgain).should('be.visible')
cy.contains('button', loginText.actionCancel).click()
})
cy.get('@loginButton').click()
cy.contains(loginText.titleInitial).should('be.visible')
})
it('closing modal correctly clears error state', () => {
cy.withCtx((ctx, o) => {
o.sinon.stub(ctx._apis.authApi, 'logIn').callsFake(async (onMessage) => {
onMessage({
name: 'AUTH_ERROR_DURING_LOGIN',
message: 'An unexpected error occurred',
browserOpened: false,
})
throw new Error()
})
})
cy.findByTestId('app-header-bar').within(() => {
cy.findByTestId('user-avatar-title').should('not.exist')
cy.findByRole('button', { name: 'Log in' }).as('loginButton').click()
})
cy.findByRole('dialog').within(() => {
cy.findByRole('button', { name: 'Log in' }).click()
cy.contains(loginText.titleFailed).should('be.visible')
cy.contains(loginText.bodyError).should('be.visible')
cy.contains('An unexpected error occurred').should('be.visible')
cy.findByLabelText(defaultMessages.actions.close).click()
})
cy.get('@loginButton').click()
cy.contains(loginText.titleInitial).should('be.visible')
})
})
})
})
function verifyBannerDoesNotExist () {
// Wait for header content to load before asserting that the banner doesn't exist
cy.findByTestId('header-bar-content').should('be.visible')
cy.findByTestId('enable-notifications-banner').should('not.exist')
}
// Run notifications will initially be released without support for Windows
// https://github.com/cypress-io/cypress/issues/26786
const itSkipIfWindows = isWindows ? it.skip : it
const itSkipIfNotWindows = !isWindows ? it.skip : it
describe('Enable Notifications Banner', () => {
context('should not render', () => {
it('when the user is not logged in', () => {
cy.scaffoldProject('launchpad')
cy.openProject('launchpad')
cy.startAppServer('e2e', { skipMockingPrompts: true })
cy.visitApp()
cy.specsPageIsVisible()
verifyBannerDoesNotExist()
})
it('when a cloud project is not connected', () => {
cy.scaffoldProject('launchpad')
cy.openProject('launchpad')
cy.startAppServer('e2e', { skipMockingPrompts: true })
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
verifyBannerDoesNotExist()
})
it('when there are no recorded runs in the connected project', () => {
cy.findBrowsers()
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.remoteGraphQLIntercept((obj) => {
if (obj.result?.data?.cloudProjectBySlug?.runs?.nodes?.length) {
obj.result.data.cloudProjectBySlug.runs.nodes = []
}
return obj.result
})
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
verifyBannerDoesNotExist()
})
itSkipIfNotWindows('when platform is Windows', () => {
cy.findBrowsers()
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
verifyBannerDoesNotExist()
})
})
context('should render', () => {
itSkipIfWindows('when there is at least one recorded run in the connected project', () => {
cy.findBrowsers()
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('enable-notifications-banner').should('be.visible')
})
})
context('banner actions', () => {
itSkipIfWindows('dismisses the banner permanently if X is clicked', () => {
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('enable-notifications-banner').should('be.visible')
cy.findByRole('button', { name: 'Dismiss banner' }).click()
verifyBannerDoesNotExist()
cy.reload()
verifyBannerDoesNotExist()
})
itSkipIfWindows('dismisses the banner for a specified time', () => {
// Restore the clock to the current time so that we can reload the page
cy.clock().then((clock) => {
clock.restore()
})
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('enable-notifications-banner').should('be.visible')
cy.contains('button', 'Remind me later').click()
verifyBannerDoesNotExist()
// Reload to make sure that the banner doesn't display
cy.reload()
verifyBannerDoesNotExist()
cy.clock(dayjs().add(dayjs.duration({ days: 3, minutes: 1 })).valueOf())
cy.tick(20000) // Tick so that the banner logic re-runs
cy.findByTestId('enable-notifications-banner').should('be.visible')
})
itSkipIfWindows('enables notifications', () => {
let showSystemNotificationStub
cy.withCtx((ctx, o) => {
showSystemNotificationStub = o.sinon.stub(ctx.actions.electron, 'showSystemNotification')
})
cy.scaffoldProject('component-tests')
cy.openProject('component-tests')
cy.startAppServer()
cy.loginUser()
cy.visitApp()
cy.specsPageIsVisible()
cy.findByTestId('enable-notifications-banner').should('be.visible')
cy.contains('button', 'Enable desktop notifications').click()
verifyBannerDoesNotExist()
cy.withCtx((ctx) => {
expect(showSystemNotificationStub).to.have.been.calledWith('Notifications Enabled', 'Nice, notifications are enabled!')
})
})
})
})
})
describe('Growth Prompts Can Open Automatically', () => {
beforeEach(() => {
cy.clock(1609891200000)
cy.scaffoldProject('launchpad')
cy.openProject('launchpad')
cy.startAppServer('e2e', { skipMockingPrompts: true })
})
it('CI prompt auto-opens 4 days after first project opened', () => {
cy.withCtx(
(ctx, o) => {
o.sinon.stub(ctx._apis.projectApi, 'getCurrentProjectSavedState').resolves({
firstOpened: 1609459200000,
lastOpened: 1609459200000,
promptsShown: {},
banners: { _disabled: true },
})
},
)
cy.visitApp()
cy.specsPageIsVisible()
cy.verifyE2ESelected()
cy.wait(1000)
cy.contains('Configure CI').should('be.visible')
})
it('CI prompt does not auto-open when it has already been dismissed', () => {
cy.withCtx(
(ctx, o) => {
o.sinon.stub(ctx._apis.projectApi, 'getCurrentProjectSavedState').resolves({
firstOpened: 1609459200000,
lastOpened: 1609459200000,
promptsShown: { ci1: 1609459200000 },
banners: { _disabled: true },
})
},
)
cy.visitApp()
cy.specsPageIsVisible()
cy.verifyE2ESelected()
cy.wait(1000)
cy.contains('Configure CI').should('not.exist')
})
})
| cypress/packages/app/cypress/e2e/top-nav.cy.ts/0 | {
"file_path": "cypress/packages/app/cypress/e2e/top-nav.cy.ts",
"repo_id": "cypress",
"token_count": 14310
} | 63 |
<template>
<router-view v-slot="{ Component }">
<component
:is="Component"
/>
</router-view>
<template v-if="!isRunMode">
<!--
avoiding graphql in run mode
-->
<CloudViewerAndProject />
<LoginConnectModals />
</template>
</template>
<script setup lang="ts">
import { isRunMode } from '@packages/frontend-shared/src/utils/isRunMode'
import LoginConnectModals from '@cy/gql-components/LoginConnectModals.vue'
import CloudViewerAndProject from '@packages/frontend-shared/src/gql-components/CloudViewerAndProject.vue'
</script>
| cypress/packages/app/src/App.vue/0 | {
"file_path": "cypress/packages/app/src/App.vue",
"repo_id": "cypress",
"token_count": 211
} | 64 |
import FileMatchInput from './FileMatchInput.vue'
import { ref } from 'vue'
describe('<FileMatchInput />', () => {
it('renders a reasonable length text and can be typed into', () => {
const initialText = 'Initial Text Value'
const newText = 'Hello'
const inputText = ref(initialText)
const onUpdateTextSpy = cy.spy().as('onUpdateTextSpy')
const methods = {
'onUpdate:modelValue': (newValue) => {
inputText.value = newValue
onUpdateTextSpy(newValue)
},
}
cy.mount(() => (<div class="p-12">
<FileMatchInput modelValue={inputText.value} {...methods} />
</div>))
.get('input[type=search]').should('have.value', initialText)
.clear().type(newText)
.get('@onUpdateTextSpy').should('have.been.calledWith', newText)
.invoke('getCalls').should('have.length.at.least', newText.length)
.get('input[type=search]').should('have.value', newText)
.clear()
.get('@onUpdateTextSpy').should('have.been.calledWith', '')
.get('input[type=search]').should('have.attr', 'autocomplete', 'off')
})
})
| cypress/packages/app/src/components/FileMatchInput.cy.tsx/0 | {
"file_path": "cypress/packages/app/src/components/FileMatchInput.cy.tsx",
"repo_id": "cypress",
"token_count": 416
} | 65 |
import { computed, Ref, unref } from 'vue'
import { dayjs } from '../runs/utils/day.js'
/*
Format duration to in HH:mm:ss format. The `totalDuration` field is milliseconds. Remove the leading "00:" if the value is less
than an hour. Currently, there is no expectation that a run duration will be greater 24 hours or greater, so it is okay that
this format would "roll-over" in that scenario.
Ex: 1 second which is 1000ms = 00:01
Ex: 1 hour and 1 second which is 3601000ms = 01:00:01
*/
export function useDurationFormat (value: number | Ref<number>) {
return computed(() => {
const duration = unref(value)
if (duration >= 1000) {
return dayjs.duration(duration).format('HH:mm:ss').replace(/^0+:/, '')
}
return `${duration }ms`
})
}
| cypress/packages/app/src/composables/useDurationFormat.ts/0 | {
"file_path": "cypress/packages/app/src/composables/useDurationFormat.ts",
"repo_id": "cypress",
"token_count": 248
} | 66 |
import DebugFailedTest from './DebugFailedTest.vue'
import type { TestResults } from './DebugSpec.vue'
const group1 = {
os: {
id: '123',
name: 'Linux',
nameWithVersion: 'Linux Debian',
},
browser: {
id: '123',
formattedName: 'Chrome',
formattedNameWithVersion: 'Chrome 106',
},
groupName: 'Staging',
id: '123',
}
const group2 = {
os: {
id: '123',
name: 'Windows',
nameWithVersion: 'Windows 110',
},
browser: {
id: '123',
formattedName: 'Electron',
formattedNameWithVersion: 'Electron 106',
},
groupName: 'Production',
id: '456',
}
const instance1: TestResults['instance'] = {
id: '123',
groupId: '123',
status: 'FAILED',
hasScreenshots: true,
hasReplay: true,
replayUrl: 'https://cloud.cypress.io/projects/123/runs/456/overview/789/replay',
screenshotsUrl: 'https://cloud.cypress.io/projects/123/runs/456/overview/789/screenshots',
hasStdout: true,
stdoutUrl: 'https://cloud.cypress.io/projects/123/runs/456/overview/789/stdout',
hasVideo: true,
videoUrl: 'https://cloud.cypress.io/projects/123/runs/456/overview/789/video',
}
const instance2: TestResults['instance'] = {
...instance1,
id: '456',
groupId: '456',
}
/**
* This helper testing function mimics mappedTitleParts in DebugFailedTest.
* It creates an ordered array of titleParts and chevron icons and then asserts
* the order in which they are rendered using the testAttr and text values.
*/
const assertRowContents = (testResults: TestResults) => {
const l = testResults.titleParts.length
const finalPartLength = testResults.titleParts[l - 1].length
const assertionArr = [{ testAttr: 'failed-icon', text: '' }]
if (l <= 3) {
testResults.titleParts.forEach((title, index) => {
if (index === l - 1) {
assertionArr.push({ testAttr: `titleParts-${index}-title`, text: testResults.titleParts[l - 1].slice(0, finalPartLength - 15) })
assertionArr.push({ testAttr: `titleParts-${index + 1}-title`, text: testResults.titleParts[l - 1].slice(finalPartLength - 15) })
} else {
assertionArr.push({ testAttr: `titleParts-${index}-title`, text: title })
assertionArr.push({ testAttr: `titleParts-${index + 1}-chevron`, text: '' })
}
})
} else {
testResults.titleParts.forEach((title, index) => {
if (index === l - 1) {
if (testResults.titleParts[l - 1]) {
assertionArr.push({ testAttr: `titleParts-${index + 1}-chevron`, text: '' })
assertionArr.push({ testAttr: `titleParts-${index + 1}-title`, text: testResults.titleParts[l - 1].slice(0, finalPartLength - 15) })
assertionArr.push({ testAttr: `titleParts-${index + 2}-title`, text: testResults.titleParts[l - 1].slice(finalPartLength - 15) })
}
} else {
if (index === 0) {
assertionArr.push({ testAttr: `titleParts-${index}-title`, text: title })
assertionArr.push({ testAttr: `titleParts-${index + 1}-chevron`, text: '' })
assertionArr.push({ testAttr: `titleParts-1-title`, text: '...' })
} else {
assertionArr.push({ testAttr: `titleParts-${index + 1}-chevron`, text: '' })
assertionArr.push({ testAttr: `titleParts-${index + 1}-title`, text: title })
}
}
})
}
cy.get('[data-cy*=titleParts]').each((ele, index) => {
const { testAttr, text } = assertionArr[index]
cy.findByTestId(testAttr).should('contain.text', text)
})
}
describe('<DebugFailedTest/>', () => {
it('mounts correctly', () => {
const testResult: TestResults = {
id: '676df87878',
titleParts: ['Login', 'Should redirect unauthenticated user to signin page'],
instance: instance1,
}
cy.mount(() => (
<div data-cy="test-group">
<DebugFailedTest failedTestsResult={[testResult]} groups={[group1]} expandable={false}/>
</div>
))
cy.findByTestId('test-row').children().should('have.length', 6)
cy.findByTestId('failed-icon').should('be.visible')
assertRowContents(testResult)
cy.findByTestId('test-group').realHover()
cy.findByTestId('debug-artifacts').should('be.visible').children().should('have.length', 4)
cy.findByTestId('debug-artifacts').children().each((artifact) => {
cy.wrap(artifact).find('a').should('have.attr', 'href')
.and('match', /utm_medium/)
.and('match', /utm_campaign/)
.and('match', /utm_source/)
})
})
it('contains multiple titleParts segments', { viewportWidth: 1200 }, () => {
const multipleTitleParts: TestResults = {
id: '676df87878',
titleParts: ['Login', 'Describe', 'it', 'context', 'Should redirect unauthenticated user to signin page'],
instance: instance1,
}
cy.mount(() => (
<DebugFailedTest failedTestsResult={[multipleTitleParts]} groups={[group1]} expandable={false}/>
))
assertRowContents(multipleTitleParts)
})
it('tests multiple groups', { viewportWidth: 1200 }, () => {
const testResults: TestResults[] = [
{
id: '676df87878',
titleParts: ['Login', 'Describe', 'it', 'context', 'Should redirect unauthenticated user to signin page'],
instance: instance1,
},
{
id: '676df87878',
titleParts: ['Login', 'Should redirect unauthenticated user to signin page'],
instance: instance2,
},
]
cy.mount(() => (
<div data-cy="test-group">
<DebugFailedTest failedTestsResult={testResults} groups={[group1, group2]} expandable={true}/>
</div>
))
cy.findByTestId('test-group').realHover()
cy.findByTestId('debug-artifacts').should('not.exist')
cy.findAllByTestId('grouped-row').should('have.length', 2)
cy.findAllByTestId('grouped-row').first().realHover()
cy.findAllByTestId('debug-artifacts').first().should('be.visible').children().should('have.length', 4)
cy.percySnapshot()
})
it('tests responsive UI', { viewportWidth: 700 }, () => {
const testResult: TestResults = {
id: '676df87874',
titleParts: ['Test content', 'Test content 2', 'Test content 3', 'Test content 4', 'onMount() should be called once', 'hook() should be called twice and then'],
instance: instance1,
}
cy.mount(() => (
<div data-cy="test-group">
<DebugFailedTest failedTestsResult={[testResult]} groups={[group1]} expandable={false}/>
</div>
))
assertRowContents(testResult)
cy.contains('...').realHover()
cy.contains('[data-cy=tooltip-content]', 'Test content 2 > Test content 3 > Test content 4').should('be.visible')
})
it('conditionally renders artifacts', () => {
const render = (testResult: TestResults) => cy.mount(() =>
(<div data-cy="test-group">
<DebugFailedTest failedTestsResult={[testResult]} groups={[group1]} expandable={false}/>
</div>))
const testResult: TestResults = {
id: '676df87874',
titleParts: ['Test content', 'Test content 2', 'Test content 3', 'Test content 4', 'onMount() should be called once', 'hook() should be called twice and then'],
instance: instance1,
}
const artifactFreeInstance: TestResults['instance'] = {
...instance1,
hasStdout: false,
hasScreenshots: false,
hasVideo: false,
hasReplay: false,
}
render({ ...testResult, instance: artifactFreeInstance })
cy.findByTestId('debug-artifacts').children().should('have.length', 0)
render({ ...testResult, instance: { ...artifactFreeInstance, hasStdout: true } })
cy.findByTestId('debug-artifacts').children().should('have.length', 1)
cy.findByTestId('TERMINAL_LOG-button').should('exist')
render({ ...testResult, instance: { ...artifactFreeInstance, hasScreenshots: true } })
cy.findByTestId('debug-artifacts').children().should('have.length', 1)
cy.findByTestId('IMAGE_SCREENSHOT-button').should('exist')
render({ ...testResult, instance: { ...artifactFreeInstance, hasVideo: true } })
cy.findByTestId('debug-artifacts').children().should('have.length', 1)
cy.findByTestId('PLAY-button').should('exist')
render({ ...testResult, instance: { ...artifactFreeInstance, hasReplay: true } })
cy.findByTestId('debug-artifacts').children().should('have.length', 1)
cy.findByTestId('REPLAY-button').should('exist')
render({ ...testResult, instance: instance1 })
cy.findByTestId('debug-artifacts').children()
.should('have.length', 4)
.first()
.should('have.attr', 'data-cy', 'artifact--REPLAY')
.next()
.should('have.attr', 'data-cy', 'artifact--TERMINAL_LOG')
.next()
.should('have.attr', 'data-cy', 'artifact--IMAGE_SCREENSHOT')
.next()
.should('have.attr', 'data-cy', 'artifact--PLAY')
})
})
| cypress/packages/app/src/debug/DebugFailedTest.cy.tsx/0 | {
"file_path": "cypress/packages/app/src/debug/DebugFailedTest.cy.tsx",
"repo_id": "cypress",
"token_count": 3328
} | 67 |
<template>
<li
class="mr-[12px] ml-[6px] "
:data-cy="isCurrentRun ? 'current-run' : 'run'"
>
<component
:is="isCurrentRun ? 'div': 'button'"
:aria-label="t('debugPage.switchToRun', {runNumber: gql.runNumber})"
class="rounded flex w-full p-[10px] pl-[35px] relative hocus:bg-indigo-50 focus:outline focus:outline-indigo-500"
:class="{ 'bg-indigo-50': isCurrentRun }"
@click="$emit('changeRun')"
>
<DebugCurrentRunIcon
v-if="isCurrentRun"
class="top-[18px] left-[12px] absolute"
data-cy="current-run-check"
/>
<div
:data-cy="`run-${props.gql.runNumber}`"
class="flex items-center justify-between w-full"
>
<div class="flex items-center min-w-0">
<RunNumber
v-if="props.gql.status && props.gql.runNumber"
:status="props.gql.status"
:value="props.gql.runNumber"
class="mr-[8px]"
/>
<RunResults
v-if="props.gql"
:gql="props.gql"
/>
<Dot />
<LightText class="truncate">
{{ specsCompleted }}
</LightText>
</div>
<LightText class="shrink-0 ml-[8px]">
{{ totalDuration }} ({{ relativeCreatedAt }})
</LightText>
</div>
</component>
</li>
</template>
<script lang="ts" setup>
import { gql } from '@urql/vue'
import RunNumber from '../runs/RunNumber.vue'
import RunResults from '../runs/RunResults.vue'
import DebugCurrentRunIcon from './DebugCurrentRunIcon.vue'
import type { DebugProgress_DebugTestsFragment } from '../generated/graphql'
import { computed, FunctionalComponent, h } from 'vue'
import { useDebugRunSummary } from './useDebugRunSummary'
import { useRunDateTimeInterval } from './useRunDateTimeInterval'
import { useI18n } from '@cy/i18n'
const { t } = useI18n()
const props = defineProps<{
gql: DebugProgress_DebugTestsFragment
isCurrentRun: boolean
}>()
defineEmits<{
(event: 'changeRun'): void
}>()
gql`
fragment DebugProgress_DebugTests on CloudRun {
id
runNumber
totalDuration
createdAt
status
completedInstanceCount
totalInstanceCount
...RunResults
}`
const Dot: FunctionalComponent = () => {
return h('span', { class: 'px-[8px] text-gray-300' }, '•')
}
useDebugRunSummary(props.gql)
const LightText: FunctionalComponent = (_props, { slots }) => {
return h('span', { class: 'text-sm text-gray-700' }, slots?.default?.())
}
const run = computed(() => props.gql)
const { relativeCreatedAt, totalDuration } = useRunDateTimeInterval(run)
const specsCompleted = computed(() => {
if (props.gql.status === 'RUNNING') {
return t('debugPage.specCounts.whenRunning', { n: props.gql.totalInstanceCount || 0, completed: props.gql.completedInstanceCount || 0, total: props.gql.totalInstanceCount || 0 })
}
return t('debugPage.specCounts.whenCompleted', { n: props.gql.totalInstanceCount || 0 })
})
</script>
| cypress/packages/app/src/debug/DebugRunNavigationRow.vue/0 | {
"file_path": "cypress/packages/app/src/debug/DebugRunNavigationRow.vue",
"repo_id": "cypress",
"token_count": 1247
} | 68 |
<template>
<ul
data-cy="stats-metadata"
class="flex flex-wrap font-normal text-sm w-full text-gray-700 gap-x-2 items-center whitespace-nowrap stats-metadata-class children:flex children:items-center"
>
<li
v-if="$slots.prefix"
>
<slot name="prefix" />
</li>
<li
v-for="(result, i) in results"
:key="i"
:data-cy="`metaData-Results-${result.name}`"
class="py-1"
>
<span
v-if="(result.value && (result.name === 'browser' || result.name === 'browser-groups'))"
class="flex inline-flex items-center"
>
<LayeredBrowserIcon
:browsers="result.icon"
:data-cy="`${result.name} ${result.value}`"
/>
<span class="sr-only">{{ result.name }}</span>
{{ result.value }}
</span>
<span
v-else-if="result.value"
class="flex inline-flex items-center"
>
<component
:is="result.icon"
class="mr-[8px] text-gray-500"
stroke-color="gray-500"
fill-color="gray-100"
:data-cy="`${result.name} ${result.value}`"
/>
<span class="sr-only">{{ result.name }}</span>
{{ result.value }}
</span>
</li>
</ul>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { useI18n } from '@cy/i18n'
import type { SpecDataAggregate } from '@packages/data-context/src/gen/graphcache-config.gen'
import type { TestingTypeEnum, StatsMetadata_GroupsFragment } from '../generated/graphql'
import {
IconTimeClock,
IconOsLinux,
IconOsApple,
IconOsGeneric,
IconOsWindows,
IconTestingTypeComponent,
IconTestingTypeE2E,
IconTechnologyServer,
} from '@cypress-design/vue-icon'
import LayeredBrowserIcon from './LayeredBrowserIcons.vue'
import { gql } from '@urql/vue'
const { t } = useI18n()
gql`
fragment StatsMetadata_Groups on CloudRunGroup {
id
groupName
browser {
id
formattedName
formattedNameWithVersion
}
os {
id
name
nameWithVersion
}
}
`
type StatType = 'DURATION' | 'OS' | 'BROWSER' | 'TESTING' | 'G_OS' | 'GROUPS' | 'G_BROWSERS' | 'GROUP_NAME'
interface MetadataProps {
order?: StatType[]
specDuration?: string | number
testing?: TestingTypeEnum
groups?: StatsMetadata_GroupsFragment[]
groupName?: string
}
const props = defineProps<MetadataProps>()
interface Metadata {
value: number | string | null | SpecDataAggregate | TestingTypeEnum | undefined
icon: any
name: string
}
type OSType = 'LINUX' | 'MAC' | 'WINDOWS' | 'GROUP'
const OS_MAP: Record<OSType, any> = {
'LINUX': IconOsLinux,
'MAC': IconOsApple,
'WINDOWS': IconOsWindows,
'GROUP': IconOsGeneric,
}
const TESTING_MAP: Record<TestingTypeEnum, any> = {
'e2e': IconTestingTypeE2E,
'component': IconTestingTypeComponent,
}
const TESTING_TITLE_MAP: Record<TestingTypeEnum, string> = {
'e2e': 'E2E',
'component': 'Component',
}
const results = computed(() => {
if (props.order) {
return props.order.map((status) => ORDER_MAP.value[status])
}
return []
})
const arrMapping = computed(() => {
const acc: {browsers: string[], oses: string[], firstBrowser: string, firstOs: string} = { browsers: [], oses: [], firstBrowser: '', firstOs: '' }
const uniqueBrowsers = new Set<string>()
const uniqueOSes = new Set<string>()
if (props.groups) {
props.groups.forEach((group: StatsMetadata_GroupsFragment, index) => {
const browserName = group.browser.formattedName!.toUpperCase()
const osName = group.os.name!.toUpperCase()
uniqueBrowsers.add(browserName)
uniqueOSes.add(osName)
if (index === 0) {
acc.firstBrowser = group.browser.formattedNameWithVersion!
acc.firstOs = group.os.nameWithVersion!
}
})
}
acc.browsers = Array.from(uniqueBrowsers).sort()
acc.oses = Array.from(uniqueOSes)
return acc
})
const ORDER_MAP = computed<Record<StatType, Metadata>>(() => {
return {
'DURATION': {
value: props.specDuration,
icon: IconTimeClock,
name: 'spec-duration',
},
'OS': {
value: arrMapping.value.firstOs,
icon: OS_MAP[arrMapping.value.oses[0]],
name: 'operating-system',
},
'BROWSER': {
value: arrMapping.value.firstBrowser,
icon: arrMapping.value.browsers,
name: 'browser',
},
'TESTING': {
value: TESTING_TITLE_MAP[props.testing!],
icon: TESTING_MAP[props.testing!],
name: 'testing-type',
},
'GROUPS': {
value: t('debugPage.stats.groups', props.groups!.length),
icon: IconTechnologyServer,
name: 'group-server',
},
'G_OS': {
value: t('debugPage.stats.operatingSystems', arrMapping.value.oses.length),
icon: OS_MAP['GROUP'],
name: 'operating-system-groups',
},
'G_BROWSERS': {
value: t('debugPage.stats.browsers', arrMapping.value.browsers.length),
icon: arrMapping.value.browsers,
name: 'browser-groups',
},
'GROUP_NAME': {
value: props.groupName!,
icon: IconTechnologyServer,
name: 'group_name',
},
}
})
</script>
<style scoped>
.stats-metadata-class li:not(:first-child)::before {
content: '.';
@apply mt-[-8px] text-lg text-gray-400 pr-[8px]
}
</style>
| cypress/packages/app/src/debug/StatsMetadata.vue/0 | {
"file_path": "cypress/packages/app/src/debug/StatsMetadata.vue",
"repo_id": "cypress",
"token_count": 2237
} | 69 |
<template>
<PromoCard
:title="t('debugPage.emptyStates.slideshow.step1.title')"
:body="t('debugPage.emptyStates.slideshow.step1.description')"
>
<template #image>
<Illustration />
</template>
<template #action>
<PromoAction
:action="action"
:left-label="t('debugPage.emptyStates.slideshow.controls.step', [1, 3])"
:right-label="t('debugPage.emptyStates.slideshow.controls.next')"
:right-icon="IconChevronRightSmall"
/>
</template>
</PromoCard>
</template>
<script lang="ts" setup>
import { useI18n } from '@cy/i18n'
import PromoCard from '../../components/promo/PromoCard.vue'
import PromoAction from '../../components/promo/PromoAction.vue'
import { IconChevronRightSmall } from '@cypress-design/vue-icon'
import Illustration from '../../assets/debug-guide-skeleton-1.svg'
const { t } = useI18n()
defineProps<{
action: () => void
}>()
</script>
| cypress/packages/app/src/debug/guide/GuideCard1.vue/0 | {
"file_path": "cypress/packages/app/src/debug/guide/GuideCard1.vue",
"repo_id": "cypress",
"token_count": 382
} | 70 |
<template>
<StandardModal
class="transition transition-all duration-200"
variant="bare"
:title="t('sidebar.keyboardShortcuts.title')"
:model-value="show"
data-cy="keyboard-modal"
:no-help="true"
@update:model-value="emits('close')"
>
<ul class="m-[24px] w-[384px]">
<li
v-for="binding in keyBindings"
:key="binding.key.join('-')"
class="flex h-[24px] my-[16px] items-center"
>
<p class="grow text-gray-700 text-[16px] leading-[24px]">
{{ binding.description }}
</p>
<span
v-for="key in binding.key"
:key="key"
class="border rounded-sm bg-gray-50 border-gray-100 h-[24px] text-center ml-[8px] text-indigo-500 text-[14px] leading-[20px] w-[24px] inline-block"
>
{{ key }}
</span>
</li>
</ul>
</StandardModal>
</template>
<script lang="ts" setup>
import StandardModal from '@cy/components/StandardModal.vue'
import { useI18n } from '@cy/i18n'
const { t } = useI18n()
defineProps<{
show: boolean
}>()
const emits = defineEmits<{
(eventName: 'close'): void
}>()
const keyBindings = [
{
key: ['r'],
description: t('sidebar.keyboardShortcuts.rerun'),
},
{
key: ['s'],
description: t('sidebar.keyboardShortcuts.stop'),
},
{
key: ['f'],
description: t('sidebar.keyboardShortcuts.toggle'),
},
]
</script>
| cypress/packages/app/src/navigation/KeyboardBindingsModal.vue/0 | {
"file_path": "cypress/packages/app/src/navigation/KeyboardBindingsModal.vue",
"repo_id": "cypress",
"token_count": 648
} | 71 |
<template>
<div class="rounded-md mx-auto border mt-20 text-center p-[20px] w-[400px]">
<h1 class="text-2xl">
You seem to have gotten lost...
</h1>
<p class="text-gray-600">
Try one of these links instead
</p>
<nav class="space-y-2 mt-[40px]">
<li
v-for="route in routes"
:key="route.path"
class="text-left text-indigo-700 underline decoration-2 underline-offset-1 decoration-indigo-700 hover:text-indigo-500 hover:decoration-indigo-500"
>
<RouterLink :to="route.path">
{{ route.name }}
</RouterLink>
</li>
</nav>
</div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
import { computed } from 'vue'
import { uniqBy } from 'lodash'
const routes = computed(() => {
return uniqBy(useRouter().getRoutes(), 'path').filter((r) => r.meta?.layout !== 'error' && !r.meta?.error)
})
</script>
<route>
{
meta: {
layout: "default",
error: true
},
meta: {
title: "404"
}
}
</route>
| cypress/packages/app/src/pages/[...all].vue/0 | {
"file_path": "cypress/packages/app/src/pages/[...all].vue",
"repo_id": "cypress",
"token_count": 456
} | 72 |
<template>
<div
id="spec-runner-header"
ref="autHeaderEl"
class="min-h-[64px] text-[14px]"
>
<div class="flex flex-wrap grow p-[16px] gap-[12px] justify-end">
<div
v-if="props.gql.currentTestingType === 'e2e'"
data-cy="aut-url"
class="border rounded flex grow border-gray-100 h-[32px] overflow-hidden align-middle"
:class="{
'bg-gray-50': autStore.isLoadingUrl
}"
>
<Button
data-cy="playground-activator"
:disabled="isDisabled"
class="rounded-none border-gray-100 border-r-[1px] mr-[12px]"
variant="text"
:aria-label="t('runner.selectorPlayground.toggle')"
@click="togglePlayground"
>
<i-cy-crosshairs_x16 :class="[selectorPlaygroundStore.show ? 'icon-dark-indigo-500' : 'icon-dark-gray-500']" />
</Button>
<input
ref="autUrlInputRef"
:value="studioStore.needsUrl ? urlInProgress : autUrl"
data-cy="aut-url-input"
class="flex grow mr-[12px] leading-normal max-w-full text-indigo-500 z-51 self-center hocus-link-default truncate"
@input="setStudioUrl"
@click="openExternally"
@keyup.enter="visitUrl"
>
<StudioUrlPrompt
v-if="studioStore.needsUrl"
:aut-url-input-ref="autUrlInputRef"
:url-in-progress="urlInProgress"
@submit="visitUrl"
@cancel="() => eventManager.emit('studio:cancel', undefined)"
/>
</div>
<div
v-else
class="grow"
>
<Button
data-cy="playground-activator"
:disabled="isDisabled"
class="border-gray-100 mr-[12px]"
variant="outline"
:aria-label="t('runner.selectorPlayground.toggle')"
@click="togglePlayground"
>
<i-cy-crosshairs_x16 :class="[selectorPlaygroundStore.show ? 'icon-dark-indigo-500' : 'icon-dark-gray-500']" />
</Button>
</div>
<SpecRunnerDropdown
v-if="selectedBrowser?.displayName"
data-cy="select-browser"
:disabled="autStore.isRunning"
>
<template #heading>
<img
class="min-w-[16px] w-[16px]"
:src="allBrowsersIcons[selectedBrowser.displayName] || allBrowsersIcons.generic"
:alt="selectedBrowser.displayName"
>
{{ selectedBrowser.displayName }} {{ selectedBrowser.majorVersion }}
</template>
<template #default>
<div class="max-h-[50vh] overflow-auto">
<VerticalBrowserListItems
:gql="props.gql"
:spec-path="activeSpecPath"
/>
</div>
</template>
</SpecRunnerDropdown>
<SpecRunnerDropdown
variant="panel"
data-cy="viewport"
>
<template #heading>
<i-cy-ruler_x16 class="icon-dark-gray-500 icon-light-gray-400" />
<span class="whitespace-nowrap">{{ autStore.viewportWidth }}x{{ autStore.viewportHeight }}</span>
<span
v-if="displayScale"
class="ml-[-6px] text-gray-500"
>
({{ displayScale }})
</span>
</template>
<template #default>
<div class="max-h-50vw p-[24px] pt-5 text-gray-700 leading-5 w-[346px] overflow-auto">
<i18n-t
tag="p"
keypath="runner.viewportTooltip.infoText"
class="mb-[24px]"
>
<strong class="font-bold">{{ autStore.defaultViewportWidth }}px</strong>
<strong class="font-bold">{{ autStore.defaultViewportHeight }}px</strong>
{{ props.gql.currentTestingType === "e2e" ? 'end-to-end' : 'component' }}
</i18n-t>
<i18n-t
tag="p"
keypath="runner.viewportTooltip.configText"
class="mb-[24px]"
>
<template #configFile>
<!-- disable rule to prevent trailing space from being added to <InlineCodeFragment/> content -->
<!-- eslint-disable-next-line vue/singleline-html-element-content-newline -->
<InlineCodeFragment class="font-medium text-xs leading-5">{{ props.gql.configFile }}</InlineCodeFragment>
</template>
<template #viewportCommand>
<!-- disable rule to prevent trailing space from being added to <InlineCodeFragment/> content -->
<!-- eslint-disable-next-line vue/singleline-html-element-content-newline -->
<InlineCodeFragment class="font-medium text-xs leading-5">cy.viewport()</InlineCodeFragment>
</template>
</i18n-t>
<div class="flex justify-center">
<Button
class="font-medium"
data-cy="viewport-docs"
:prefix-icon="BookIcon"
prefix-icon-class="icon-dark-indigo-500"
variant="outline"
:href="t('runner.viewportTooltip.buttonHref')"
>
{{ t('runner.viewportTooltip.buttonText') }}
</Button>
</div>
</div>
</template>
</SpecRunnerDropdown>
</div>
<SelectorPlayground
v-if="selectorPlaygroundStore.show"
:get-aut-iframe="getAutIframe"
:event-manager="eventManager"
/>
<StudioControls v-if="studioStore.isActive" />
<Alert
v-model="showAlert"
status="success"
dismissible
>
<template #title>
<i-cy-book_x16 class="pr-[2px] inline-block icon-dark-indigo-500 icon-light-indigo-200" />
<ExternalLink href="https://on.cypress.io/styling-components">
{{ t('runner.header.reviewDocs') }}
</ExternalLink>
{{ t('runner.header.troubleRendering') }}
</template>
</Alert>
</div>
</template>
<script lang="ts" setup>
import { computed, ref, watchEffect } from 'vue'
import { useRoute } from 'vue-router'
import { useAutStore, useSpecStore, useSelectorPlaygroundStore } from '../store'
import { useAutHeader } from './useAutHeader'
import { gql } from '@urql/vue'
import { useI18n } from 'vue-i18n'
import type { SpecRunnerHeaderFragment } from '../generated/graphql'
import type { EventManager } from './event-manager'
import type { AutIframe } from './aut-iframe'
import { togglePlayground as _togglePlayground } from './utils'
import SelectorPlayground from './selector-playground/SelectorPlayground.vue'
import ExternalLink from '@packages/frontend-shared/src/gql-components/ExternalLink.vue'
import Alert from '@packages/frontend-shared/src/components/Alert.vue'
import Button from '@packages/frontend-shared/src/components/Button.vue'
import StudioControls from './studio/StudioControls.vue'
import StudioUrlPrompt from './studio/StudioUrlPrompt.vue'
import VerticalBrowserListItems from '@packages/frontend-shared/src/gql-components/topnav/VerticalBrowserListItems.vue'
import InlineCodeFragment from '@packages/frontend-shared/src/components/InlineCodeFragment.vue'
import SpecRunnerDropdown from './SpecRunnerDropdown.vue'
import { allBrowsersIcons } from '@packages/frontend-shared/src/assets/browserLogos'
import BookIcon from '~icons/cy/book_x16'
import { useStudioStore } from '../store/studio-store'
import { useExternalLink } from '@cy/gql-components/useExternalLink'
gql`
fragment SpecRunnerHeader on CurrentProject {
id
configFile
currentTestingType
activeBrowser {
id
displayName
majorVersion
}
config
...VerticalBrowserListItems
}
`
const { t } = useI18n()
const autStore = useAutStore()
const specStore = useSpecStore()
const route = useRoute()
const studioStore = useStudioStore()
const urlInProgress = ref('')
const autUrlInputRef = ref<HTMLInputElement>()
const props = defineProps<{
gql: SpecRunnerHeaderFragment
eventManager: EventManager
getAutIframe: () => AutIframe
}>()
const showAlert = ref(false)
const { autHeaderEl } = useAutHeader()
watchEffect(() => {
showAlert.value = route.params.shouldShowTroubleRenderingAlert === 'true'
})
const autIframe = props.getAutIframe()
const displayScale = computed(() => {
return autStore.scale < 1 ? `${Math.round(autStore.scale * 100) }%` : 0
})
const autUrl = computed(() => {
if (studioStore.isActive && studioStore.url) {
return studioStore.url
}
return autStore.url
})
const selectorPlaygroundStore = useSelectorPlaygroundStore()
const togglePlayground = () => _togglePlayground(autIframe)
// Have to spread gql props since binding it to v-model causes error when testing
const selectedBrowser = ref({ ...props.gql.activeBrowser })
const activeSpecPath = specStore.activeSpec?.absolute
const isDisabled = computed(() => autStore.isRunning || autStore.isLoading)
const openExternal = useExternalLink()
function setStudioUrl (event: Event) {
const url = (event.currentTarget as HTMLInputElement).value
urlInProgress.value = url
}
function visitUrl () {
studioStore.visitUrl(urlInProgress.value)
}
function openExternally () {
if (!autStore.url || studioStore.isActive) {
return
}
openExternal(autStore.url)
}
</script>
| cypress/packages/app/src/runner/SpecRunnerHeaderOpenMode.vue/0 | {
"file_path": "cypress/packages/app/src/runner/SpecRunnerHeaderOpenMode.vue",
"repo_id": "cypress",
"token_count": 4016
} | 73 |
type ProtocolInfo = {
type: 'cy:protocol-snapshot' | 'log:added' | 'log:changed' | 'page:loading'| 'test:before:run:async' | 'test:before:after:run:async' | 'test:after:run:async' | 'url:changed' | 'viewport:changed'
timestamp: DOMHighResTimeStamp
}
const attachCypressProtocolInfo = (info: ProtocolInfo) => {
let cypressProtocolElement: HTMLElement | null = document.getElementById('__cypress-protocol')
// If element does not exist, create it
if (!cypressProtocolElement) {
cypressProtocolElement = document.createElement('div')
cypressProtocolElement.id = '__cypress-protocol'
cypressProtocolElement.style.display = 'none'
document.body.appendChild(cypressProtocolElement)
}
cypressProtocolElement.dataset.cypressProtocolInfo = JSON.stringify(info)
}
export const addCaptureProtocolListeners = (Cypress: Cypress.Cypress) => {
Cypress.on('cy:protocol-snapshot', () => {
attachCypressProtocolInfo({
type: 'cy:protocol-snapshot',
timestamp: performance.now() + performance.timeOrigin,
})
})
Cypress.on('log:added', (attributes) => {
// TODO: UNIFY-1318 - Race condition in unified runner - we should not need this null check
if (!Cypress.runner) {
return
}
const protocolProps = Cypress.runner.getProtocolPropsForLog(attributes)
attachCypressProtocolInfo({
type: 'log:added',
timestamp: performance.now() + performance.timeOrigin,
})
Cypress.backend('protocol:command:log:added', protocolProps)
})
Cypress.on('log:changed', (attributes) => {
// TODO: UNIFY-1318 - Race condition in unified runner - we should not need this null check
if (!Cypress.runner) {
return
}
const protocolProps = Cypress.runner.getProtocolPropsForLog(attributes)
attachCypressProtocolInfo({
type: 'log:changed',
timestamp: performance.now() + performance.timeOrigin,
})
Cypress.backend('protocol:command:log:changed', protocolProps)
})
const viewportChangedHandler = (viewport) => {
const timestamp = performance.timeOrigin + performance.now()
attachCypressProtocolInfo({
type: 'viewport:changed',
timestamp,
})
Cypress.backend('protocol:viewport:changed', {
viewport: {
width: viewport.viewportWidth,
height: viewport.viewportHeight,
},
timestamp,
})
}
Cypress.on('viewport:changed', viewportChangedHandler)
// @ts-expect-error
Cypress.primaryOriginCommunicator.on('viewport:changed', viewportChangedHandler)
Cypress.on('test:before:run:async', async (attributes) => {
const timestamp = performance.now() + performance.timeOrigin
attachCypressProtocolInfo({
type: 'test:before:run:async',
timestamp,
})
await Cypress.backend('protocol:test:before:run:async', {
...attributes,
timestamp,
})
})
Cypress.on('url:changed', (url) => {
const timestamp = performance.timeOrigin + performance.now()
attachCypressProtocolInfo({
type: 'url:changed',
timestamp,
})
Cypress.backend('protocol:url:changed', { url, timestamp })
})
Cypress.on('page:loading', (loading) => {
const timestamp = performance.timeOrigin + performance.now()
attachCypressProtocolInfo({
type: 'page:loading',
timestamp,
})
Cypress.backend('protocol:page:loading', { loading, timestamp })
})
Cypress.on('test:before:after:run:async', async (attributes, _test, options) => {
attachCypressProtocolInfo({
type: 'test:before:after:run:async',
timestamp: performance.timeOrigin + performance.now(),
})
await Cypress.backend('protocol:test:before:after:run:async', attributes, options)
})
Cypress.on('test:after:run:async', async (attributes) => {
attachCypressProtocolInfo({
type: 'test:after:run:async',
timestamp: performance.timeOrigin + performance.now(),
})
await Cypress.backend('protocol:test:after:run:async', attributes)
})
}
| cypress/packages/app/src/runner/events/capture-protocol.ts/0 | {
"file_path": "cypress/packages/app/src/runner/events/capture-protocol.ts",
"repo_id": "cypress",
"token_count": 1451
} | 74 |
import { defineStore } from 'pinia'
import type { AutSnapshot } from './iframe-model'
import type { AutIframe } from './aut-iframe'
import { defaultMessages } from '@cy/i18n'
interface SnapshotStoreState {
messageTitle?: string
snapshotProps?: AutSnapshot
isSnapshotPinned: boolean
snapshot?: {
showingHighlights: boolean
stateIndex: number
}
}
export const useSnapshotStore = defineStore({
id: 'snapshots',
state: (): SnapshotStoreState => {
return {
messageTitle: undefined,
isSnapshotPinned: false,
snapshot: undefined,
snapshotProps: undefined,
}
},
actions: {
setSnapshotPinned (isSnapshotPinned: boolean) {
this.isSnapshotPinned = isSnapshotPinned
},
pinSnapshot (snapshotProps: AutSnapshot) {
this.messageTitle = defaultMessages.runner.snapshot.pinnedTitle
this.isSnapshotPinned = true
this.snapshotProps = snapshotProps
this.snapshot = {
showingHighlights: true,
stateIndex: 0,
}
},
clearMessage () {
this.messageTitle = undefined
},
unpinSnapshot () {
this.$reset()
},
showSnapshot (messageDescription: string = defaultMessages.runner.snapshot.defaultTitle) {
this.messageTitle = messageDescription
},
toggleHighlights (autIframe: AutIframe) {
if (!this.snapshot) {
return
}
this.snapshot.showingHighlights = !this.snapshot.showingHighlights
this.updateHighlighting(autIframe)
},
updateHighlighting (autIframe: AutIframe) {
if (!this.snapshot) {
throw Error('Cannot update highlighting if this.snapshot not defined')
}
if (this.snapshot.showingHighlights && this.snapshotProps) {
const snapshot = this.snapshotProps.snapshots[this.snapshot.stateIndex]
autIframe.highlightEl(snapshot, this.snapshotProps)
} else {
autIframe.removeHighlights()
}
},
changeState (index: number, autIframe: AutIframe) {
if (!this.snapshot) {
throw Error('Cannot change state without first assigning this.snapshot')
}
const snapshot = this.snapshotProps?.snapshots[index]
if (!snapshot) {
throw Error(`Could not find snapshot index ${index}`)
}
this.snapshot.stateIndex = index
autIframe.restoreDom(snapshot)
this.updateHighlighting(autIframe)
},
setTestsRunningError () {
this.messageTitle = defaultMessages.runner.snapshot.testsRunningError
},
setMessage (messageTitle: string) {
this.messageTitle = messageTitle
},
setMissingSnapshotMessage () {
this.messageTitle = defaultMessages.runner.snapshot.snapshotMissingError
},
},
})
| cypress/packages/app/src/runner/snapshot-store.ts/0 | {
"file_path": "cypress/packages/app/src/runner/snapshot-store.ts",
"repo_id": "cypress",
"token_count": 1042
} | 75 |
import { useElementSize } from '@vueuse/core'
import { ref, watch } from 'vue'
import { useAutStore } from '../store'
export function useAutHeader () {
const autStore = useAutStore()
const autHeaderEl = ref<HTMLDivElement>()
const { height } = useElementSize(autHeaderEl)
watch(height, (newVal) => {
if (newVal && autStore.specRunnerHeaderHeight !== newVal) {
autStore.setSpecRunnerHeaderHeight(newVal)
}
}, {
immediate: true,
})
return {
autHeaderEl,
}
}
| cypress/packages/app/src/runner/useAutHeader.ts/0 | {
"file_path": "cypress/packages/app/src/runner/useAutHeader.ts",
"repo_id": "cypress",
"token_count": 177
} | 76 |
import type { Ref } from 'vue'
import type { RunCardFragment } from '../generated/graphql'
export type RunsComposable = {
runs: Ref<RunCardFragment[] | undefined>
reExecuteRunsQuery: () => void
query: any
allRunIds?: Ref<string[] | undefined>
currentCommitInfo?: Ref<{ sha: string, message: string } | null | undefined>
}
| cypress/packages/app/src/runs/RunsComposable.ts/0 | {
"file_path": "cypress/packages/app/src/runs/RunsComposable.ts",
"repo_id": "cypress",
"token_count": 109
} | 77 |
<template>
<ul
v-if="isUsingGit"
data-cy="runsSkeleton-git"
class="flex flex-col mb-[24px] gap-[16px] relative before:content-[''] before:absolute before:top-[20px] before:bottom-[10px] before:w-[2px] before:border-2 before:border-dashed before:border-l-0 before:border-y-0 before:border-r-gray-100 before:left-[7px]"
>
<li
v-for="i in numberOfLinesGit"
:key="i"
>
<div
class="flex items-center my-[10px] gap-[8px] children:h-[14px]"
:class="{ 'mt-0': i === 0 }"
>
<div
class="relative w-[16px] rounded-lg bg-gray-50"
/>
<div
class="w-[46px] max-w-[46px] rounded-lg bg-gray-50"
/>
<div
class="flex items-center text-gray-50"
>
•
</div>
<div
class="w-[240px] max-w-[240px] rounded-lg bg-gray-50"
/>
</div>
<ul
class="relative bg-white border border-gray-100 rounded border-1 overflow-hidden"
>
<li
v-for="j in (i %2 === 0 ? 2 : 1)"
:key="j"
class="border-gray-100 [&:not(:last-child)]:border-b w-full block overflow-auto"
>
<RunsSkeletonRow />
</li>
</ul>
</li>
</ul>
<ul
v-else
data-cy="runsSkeleton-default"
class="relative bg-white border border-gray-100 rounded border-1 overflow-hidden mb-[24px]"
>
<li
v-for="i of numberOfLinesDefault"
:key="i"
class="border-gray-100 [&:not(:last-child)]:border-b w-full block overflow-auto"
>
<RunsSkeletonRow />
</li>
</ul>
</template>
<script lang="ts" setup>
import RunsSkeletonRow from './RunsSkeletonRow.vue'
defineProps<{
isUsingGit?: boolean
}>()
const numberOfLinesDefault = 7
const numberOfLinesGit = 5
</script>
| cypress/packages/app/src/runs/RunsSkeleton.vue/0 | {
"file_path": "cypress/packages/app/src/runs/RunsSkeleton.vue",
"repo_id": "cypress",
"token_count": 892
} | 78 |
<template>
<div
class="space-y-[32px] h-[calc(100vh-[64px])] p-[32px] overflow-auto"
data-cy="settings"
>
<div class="space-y-[24px]">
<SettingsCard
:title="t('settingsPage.project.title')"
name="project"
:description="t('settingsPage.project.description')"
:icon="IconFolder"
max-height="10000px"
>
<ProjectSettings
v-if="props.gql.currentProject"
:gql="props.gql.currentProject"
/>
</SettingsCard>
<SettingsCard
:title="t('settingsPage.device.title')"
:description="t('settingsPage.device.description')"
name="device"
:icon="IconLaptop"
max-height="800px"
>
<ExternalEditorSettings :gql="props.gql" />
<ProxySettings :gql="props.gql" />
<NotificationSettings
v-if="showNotificationSettings"
:gql="props.gql"
/>
<TestingPreferences :gql="props.gql" />
</SettingsCard>
<SettingsCard
:title="t('settingsPage.cloud.title')"
:description="t('settingsPage.cloud.description')"
:icon="IconOdometer"
name="cloud"
max-height="10000px"
>
<CloudSettings :gql="props.gql" />
</SettingsCard>
</div>
<hr class="border-gray-100">
<p class="mx-auto font-light text-center text-gray-500 max-w-[500px] text-[16px] leading-[24px]">
{{ footerText }}
</p>
<Button
class="mx-auto group"
variant="outline"
:prefix-icon="SettingsIcon"
prefix-icon-class="icon-dark-gray-500 icon-light-gray-50 group-hocus:icon-dark-indigo-400 group-hocus:icon-light-indigo-50"
:href="t('settingsPage.footer.buttonLink')"
>
{{ t('settingsPage.footer.button') }}
</Button>
</div>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { useI18n } from '@cy/i18n'
import { gql } from '@urql/vue'
import Button from '@cy/components/Button.vue'
import ExternalEditorSettings from './device/ExternalEditorSettings.vue'
import ProxySettings from './device/ProxySettings.vue'
import SettingsCard from './SettingsCard.vue'
import ProjectSettings from './project/ProjectSettings.vue'
import CloudSettings from '../settings/project/CloudSettings.vue'
import TestingPreferences from './device/TestingPreferences.vue'
import NotificationSettings from './device/NotificationSettings.vue'
import type { SettingsContainerFragment } from '../generated/graphql'
import IconLaptop from '~icons/cy/laptop_x24.svg'
import IconOdometer from '~icons/cy/object-odometer_x24.svg'
import IconFolder from '~icons/cy/folder-outline_x24.svg'
import SettingsIcon from '~icons/cy/settings_x16.svg'
import { isWindows } from '@packages/frontend-shared/src/utils/isWindows'
const { t } = useI18n()
const footerText = computed(() => {
return t('settingsPage.footer.text',
{ testingType: props.gql.currentProject?.currentTestingType === 'component'
? 'component'
: 'E2E' })
})
gql`
fragment SettingsContainer on Query {
...TestingPreferences
currentProject {
id
...ProjectSettings
}
...CloudSettings
...ExternalEditorSettings
...ProxySettings
...NotificationSettings
}`
const props = defineProps<{
gql: SettingsContainerFragment
}>()
// Run notifications will initially be released without support for Windows
// https://github.com/cypress-io/cypress/issues/26786
const showNotificationSettings = !isWindows
</script>
| cypress/packages/app/src/settings/SettingsContainer.vue/0 | {
"file_path": "cypress/packages/app/src/settings/SettingsContainer.vue",
"repo_id": "cypress",
"token_count": 1381
} | 79 |
<template>
<SettingsSection
data-cy="settings-config"
>
<template #title>
{{ t('settingsPage.config.title') }}
</template>
<template #description>
<i18n-t
scope="global"
keypath="settingsPage.config.description"
>
<OpenConfigFileInIDE :gql="props.gql" />
</i18n-t>
</template>
<div class="flex w-full">
<ConfigCode
data-cy="config-code"
:gql="props.gql"
/>
<ConfigLegend
:gql="props.gql"
data-cy="config-legend"
class="rounded-tr-md rounded-br-md border border-l-0 min-w-[280px] py-[28px] px-[22px]"
/>
</div>
</SettingsSection>
</template>
<script lang="ts" setup>
import { gql } from '@urql/vue'
import SettingsSection from '../SettingsSection.vue'
import { useI18n } from '@cy/i18n'
import ConfigLegend from './ConfigLegend.vue'
import ConfigCode from './ConfigCode.vue'
import type { ConfigFragment } from '../../generated/graphql'
import OpenConfigFileInIDE from '@packages/frontend-shared/src/gql-components/OpenConfigFileInIDE.vue'
const { t } = useI18n()
gql`
fragment Config on CurrentProject {
id
...OpenConfigFileInIDE
...ConfigCode
}
`
const props = defineProps<{
gql: ConfigFragment
}>()
</script>
| cypress/packages/app/src/settings/project/Config.vue/0 | {
"file_path": "cypress/packages/app/src/settings/project/Config.vue",
"repo_id": "cypress",
"token_count": 539
} | 80 |
import { RecordKeyFragmentDoc } from '../../generated/graphql-test'
import RecordKey from './RecordKey.vue'
import { defaultMessages } from '@cy/i18n'
describe('<RecordKey />', () => {
const key = '1234-bbbb-5678-dddd'
beforeEach(() => {
cy.viewport(800, 600)
cy.mountFragment(RecordKeyFragmentDoc, {
onResult: (res) => {
res.key = key
},
render: (gql) => (
<div class="py-4 px-8">
<RecordKey gql={gql} manageKeysUrl="http://project.cypress.io/settings" />
</div>
),
})
})
it('renders the Record Key view with the correct title', () => {
cy.findByText('Record key')
})
it(`has an input that's hidden by default`, () => {
cy.get('code').as('Record key input')
.should('be.visible')
.contains('code', key).should('not.exist')
.get('[aria-label="Record Key Visibility Toggle"]').as('Password Toggle')
.click()
cy.contains('code', key).should('be.visible')
.get('@Password Toggle')
.click()
cy.contains('code', key).should('not.exist')
})
it('has a managed keys button and copy button', () => {
// the functionality of this button triggers a mutation so is tested in the settings page e2e tests
cy.contains('button', defaultMessages.settingsPage.recordKey.manageKeys)
.should('be.visible')
.and('not.be.disabled')
cy.contains('button', defaultMessages.clipboard.copy)
.should('be.visible')
.and('not.be.disabled')
})
})
| cypress/packages/app/src/settings/project/RecordKey.cy.tsx/0 | {
"file_path": "cypress/packages/app/src/settings/project/RecordKey.cy.tsx",
"repo_id": "cypress",
"token_count": 571
} | 81 |
<template>
<SpecPatternModal
v-if="props.gql.currentProject"
:show="showSpecPatternModal"
:gql="props.gql.currentProject"
@close="showSpecPatternModal = false"
/>
<CreateSpecCards
data-cy="create-spec-page-cards"
:gql="props.gql"
:generators="filteredGenerators"
@select="selectSpecCard"
/>
<div class="border-t mt-[32px] text-center pt-[32px]">
<p
data-cy="no-specs-message"
class="leading-normal mb-[16px] text-gray-600 text-[16px]"
>
{{ t('createSpec.noSpecsMessage') }}
</p>
<Button
data-cy="view-spec-pattern"
variant="outline"
prefix-icon-class="icon-light-gray-50 icon-dark-gray-400"
:prefix-icon="SettingsIcon"
class="mx-auto duration-300 hocus:ring-gray-50 hocus:border-gray-200"
@click="showSpecPatternModal = true"
>
{{ t('createSpec.viewSpecPatternButton') }}
</Button>
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import { useI18n } from '@cy/i18n'
import SettingsIcon from '~icons/cy/settings_x16'
import Button from '@cy/components/Button.vue'
import CreateSpecCards from './CreateSpecCards.vue'
import { gql } from '@urql/vue'
import type { CreateSpecContentFragment } from '../generated/graphql'
import SpecPatternModal from '../components/SpecPatternModal.vue'
import { getFilteredGeneratorList } from './generators'
const { t } = useI18n()
gql`
fragment CreateSpecContent on Query {
...CreateSpecCards
currentProject {
id
codeGenGlobs {
id
component
}
...SpecPatternModal
}
}
`
const props = defineProps<{
gql: CreateSpecContentFragment
}>()
const filteredGenerators = getFilteredGeneratorList(props.gql.currentProject)
const emit = defineEmits<{
(e: 'showCreateSpecModal', id: string): void
}>()
const selectSpecCard = (id: string) => {
emit('showCreateSpecModal', id)
}
const showSpecPatternModal = ref(false)
</script>
| cypress/packages/app/src/specs/DefaultSpecPatternNoContent.vue/0 | {
"file_path": "cypress/packages/app/src/specs/DefaultSpecPatternNoContent.vue",
"repo_id": "cypress",
"token_count": 770
} | 82 |
<template>
<Button
v-if="projectConnectionStatus === 'UNAUTHORIZED'"
:prefix-icon="SendIcon"
prefix-icon-class="icon-dark-white icon-light-transparent"
data-cy="request-access-button"
@click="requestAccess"
>
{{ t("specPage.requestAccessButton") }}
</Button>
<Button
v-else-if="projectConnectionStatus === 'ACCESS_REQUESTED'"
:prefix-icon="SendIcon"
prefix-icon-class="icon-dark-white icon-light-transparent"
data-cy="access-requested-button"
class="btn-disabled"
disabled
>
{{ t("specPage.requestSentButton") }}
</Button>
</template>
<script setup lang="ts">
import Button from '@cy/components/Button.vue'
import SendIcon from '~icons/cy/paper-airplane_x16.svg'
import { RequestAccessButtonFragment, RequestAccessButton_RequestAccessDocument } from '../generated/graphql'
import { useI18n } from '@cy/i18n'
import { computed } from 'vue'
import { gql, useMutation } from '@urql/vue'
gql`
fragment RequestAccessButton on Query {
currentProject {
id
projectId
cloudProject {
__typename
... on CloudProjectUnauthorized {
message
hasRequestedAccess
}
... on CloudProject {
id
}
}
}
}
`
gql`
mutation RequestAccessButton_RequestAccess( $projectId: String! ) {
cloudProjectRequestAccess(projectSlug: $projectId) {
__typename
... on CloudProjectUnauthorized {
message
hasRequestedAccess
}
}
}
`
const { t } = useI18n()
const props = defineProps<{
gql: RequestAccessButtonFragment
}>()
const hasRequestedAccess = computed(() => props.gql.currentProject?.cloudProject?.__typename === 'CloudProjectUnauthorized' && props.gql.currentProject?.cloudProject?.hasRequestedAccess)
const projectConnectionStatus = computed(() => {
if (hasRequestedAccess.value) {
return 'ACCESS_REQUESTED'
}
return 'UNAUTHORIZED'
})
const requestAccessMutation = useMutation(RequestAccessButton_RequestAccessDocument)
async function requestAccess () {
const projectId = props.gql.currentProject?.projectId
if (projectId) {
await requestAccessMutation.executeMutation({ projectId })
}
}
</script>
<style scoped>
/* Override <Button> classes, do not rely on css class order */
.btn-disabled {
@apply bg-gray-800 border-gray-800;
}
</style>
| cypress/packages/app/src/specs/RequestAccessButton.vue/0 | {
"file_path": "cypress/packages/app/src/specs/RequestAccessButton.vue",
"repo_id": "cypress",
"token_count": 843
} | 83 |
import SpecsList from './SpecsList.vue'
import { Specs_SpecsListFragmentDoc, SpecsListFragment, TestingTypeEnum, SpecFilter_SetPreferencesDocument } from '../generated/graphql-test'
import { defaultMessages } from '@cy/i18n'
describe('<SpecsList />', { keystrokeDelay: 0 }, () => {
let specs: Array<SpecsListFragment>
function mountWithTestingType ({ testingType, specFilter, experimentalRunAllSpecs }: { testingType?: TestingTypeEnum, specFilter?: string, experimentalRunAllSpecs?: boolean } = {}) {
specs = []
const showCreateSpecModalSpy = cy.spy().as('showCreateSpecModalSpy')
return cy.mountFragment(Specs_SpecsListFragmentDoc, {
variableTypes: {
hasRunIds: 'Boolean',
},
variables: {
hasRunIds: false,
},
onResult: (ctx) => {
if (!ctx.currentProject) throw new Error('need current project')
specs = ctx.currentProject?.specs || []
if (testingType) {
ctx.currentProject.currentTestingType = testingType
}
if (specFilter) {
ctx.currentProject.savedState = { specFilter }
}
if (experimentalRunAllSpecs) {
ctx.currentProject.config = [{ field: 'experimentalRunAllSpecs', value: true }]
}
return ctx
},
render: (gqlVal) => {
return (
<div class="h-[850px]">
<SpecsList gql={gqlVal} onShowCreateSpecModal={showCreateSpecModalSpy} mostRecentUpdate={null} />
</div>
)
},
})
}
context('when testingType is unset', () => {
describe('with no saved filter', () => {
beforeEach(() => {
mountWithTestingType({})
})
it('should filter specs', () => {
// make sure things have rendered for snapshot
// and that only a subset of the specs are displayed
// (this means the virtualized list is working)
cy.get('[data-cy="spec-list-file"]')
.should('have.length.above', 2)
.should('have.length.below', specs.length)
cy.percySnapshot('full list')
const longestSpec = specs.reduce((acc, spec) =>
acc.relative.length < spec.relative.length ? spec : acc
, specs[0])
cy.findByLabelText(defaultMessages.specPage.searchPlaceholder)
.as('specsListInput')
cy.get('@specsListInput').type('garbage 🗑', { delay: 0 })
.get('[data-cy-spec-list-file]')
.should('not.exist')
.get('[data-cy-spec-list-directory]')
.should('not.exist')
cy.contains(`${defaultMessages.specPage.noResultsMessage} garbage 🗑`)
.should('be.visible')
cy.percySnapshot('no results')
cy.get('[data-cy="no-results-clear"]').click()
cy.get('@specsListInput').invoke('val').should('be.empty')
// validate that something re-populated in the specs list
cy.get('[data-cy="spec-list-file"]').should('have.length.above', 2)
cy.get('@specsListInput').type(longestSpec.fileName)
cy.get('[data-cy="spec-list-directory"]').first()
.should('contain', longestSpec.relative.replace(`/${longestSpec.baseName}`, ''))
cy.get('[data-cy="spec-list-file"]').last().within(() => {
cy.contains('a', longestSpec.baseName)
.should('be.visible')
.and('have.attr', 'href', `#/specs/runner?file=${longestSpec.relative}`)
})
const directory = longestSpec.relative.slice(0, longestSpec.relative.lastIndexOf('/'))
cy.get('@specsListInput').clear().type(directory)
cy.get('[data-cy="spec-list-directory"]').first().should('contain', directory)
cy.percySnapshot('matching directory search')
// Support full relative path search
cy.get('@specsListInput').clear().type(longestSpec.relative)
cy.get('[data-cy="spec-list-directory"]').first().should('contain', directory)
cy.get('[data-cy="spec-list-file"]').should('contain', longestSpec.baseName)
// test interactions
const directories: string[] = Array.from(new Set(specs.map((spec) => spec.relative.split('/')[0]))).sort()
cy.get('@specsListInput').clear()
directories.forEach((dir) => {
cy.contains('button[data-cy="row-directory-depth-0"]', new RegExp(`^${dir}`))
.should('have.attr', 'aria-expanded', 'true')
.click()
.should('have.attr', 'aria-expanded', 'false')
})
cy.get('[data-cy="spec-item"]').should('not.exist')
cy.contains('button[data-cy="row-directory-depth-0"]', directories[0])
.should('have.attr', 'aria-expanded', 'false')
.focus()
.type('{enter}')
cy.contains('button[data-cy="row-directory-depth-0"]', directories[0])
.should('have.attr', 'aria-expanded', 'true')
.focus()
.realPress('Space')
cy.contains('button[data-cy="row-directory-depth-0"]', directories[0])
.should('have.attr', 'aria-expanded', 'false')
cy.get('[data-cy="spec-item"]').should('not.exist')
cy.contains(defaultMessages.createSpec.newSpec).click()
cy.get('@showCreateSpecModalSpy').should('have.been.calledOnce')
})
describe('responsive behavior', () => {
// Spec name (first) column is handled by type-specific tests below
it('should display last updated column', () => {
cy.findByTestId('last-updated-header').as('header')
cy.get('@header').should('be.visible').and('contain', 'Last updated')
})
context('when screen is wide', { viewportWidth: 1200 }, () => {
it('should display latest runs column with full text', () => {
cy.findByTestId('latest-runs-header').within(() => {
cy.findByTestId('short-header-text').should('not.be.visible')
cy.findByTestId('full-header-text').should('be.visible')
.and('have.text', 'Latest runs')
})
})
it('should display average duration column with full text', () => {
cy.findByTestId('average-duration-header').within(() => {
cy.findByTestId('short-header-text').should('not.be.visible')
cy.findByTestId('full-header-text').should('be.visible')
.and('have.text', 'Average duration')
})
})
})
context('when screen is narrow', { viewportWidth: 800 }, () => {
it('should display latest runs column with short text', () => {
cy.findByTestId('latest-runs-header').within(() => {
cy.findByTestId('full-header-text').should('not.be.visible')
cy.findByTestId('short-header-text').should('be.visible')
.and('have.text', 'Runs')
})
})
it('should display average duration column with full text', () => {
cy.findByTestId('average-duration-header').within(() => {
cy.findByTestId('full-header-text').should('not.be.visible')
cy.findByTestId('short-header-text').should('be.visible')
.and('have.text', 'Duration')
})
})
})
})
})
describe('with a saved spec filter', () => {
beforeEach(() => {
mountWithTestingType({ specFilter: 'saved-search-term 🗑' })
cy.findByLabelText(defaultMessages.specPage.searchPlaceholder)
.as('searchField')
cy.findByLabelText(defaultMessages.specPage.clearSearch, { selector: 'button' })
.as('searchFieldClearButton')
})
it('starts with the saved filter', () => {
cy.get('@searchField').should('have.value', 'saved-search-term 🗑')
cy.get('@searchFieldClearButton').should('be.visible')
// this shouldn't match any results, so let's confirm none are shown
cy.contains('button', defaultMessages.createSpec.viewSpecPatternButton)
.as('resultsCount')
.should('contain.text', '0 of 50 matches')
// confirm results clear correctly
cy.contains('button', defaultMessages.noResults.clearSearch).click()
cy.get('@resultsCount')
.should('contain.text', '50 matches')
// the exact wording here can be deceptive so confirm it's not still
// displaying "of", since X of 50 Matches would pass for containing "50 matches"
// but would be wrong.
.should('not.contain.text', 'of 50 matches')
})
it('calls gql mutation to save updated filter', () => {
const setSpecFilterStub = cy.stub()
cy.stubMutationResolver(SpecFilter_SetPreferencesDocument, (defineResult, variables) => {
const specFilter = JSON.parse(variables.value)?.specFilter
setSpecFilterStub(specFilter)
})
// since there is a saved search, clear it out
cy.get('@searchFieldClearButton').click()
cy.get('@searchField').type('test')
cy.wrap(setSpecFilterStub).should('have.been.calledWith', 'test')
cy.get('@searchField').type('{backspace}{backspace}')
cy.wrap(setSpecFilterStub).should('have.been.calledWith', 'te')
cy.get('@searchField').type('{backspace}{backspace}')
cy.wrap(setSpecFilterStub).should('have.been.calledWith', '')
cy.wait(100) // there's an intentional 50ms delay in the code, lets just wait it out
// Specs List has a min width of ~650px in the app, so there's no need to snapshot below that
cy.viewport(650, 850)
cy.percySnapshot('narrow')
cy.viewport(800, 850)
cy.percySnapshot('medium')
cy.viewport(1200, 850)
cy.percySnapshot('wide')
cy.viewport(2000, 850)
cy.percySnapshot('widest')
})
})
})
context('when testingType is e2e', () => {
beforeEach(() => {
mountWithTestingType({ testingType: 'e2e' })
})
it('should display the e2e testing header', () => {
cy.findByTestId('specs-testing-type-header').within(() => {
cy.get('button[aria-selected="true"]').should('contain.text', 'E2E')
})
})
})
context('when testingType is component', () => {
beforeEach(() => {
mountWithTestingType({ testingType: 'component' })
})
it('should display the component testing header', () => {
cy.findByTestId('specs-testing-type-header').within(() => {
cy.get('button[aria-selected="true"]').should('contain.text', 'Component')
})
})
})
describe('Run all Specs', () => {
const hoverRunAllSpecs = (directory: string, specNumber: number) => {
cy.contains('[data-cy=spec-item-directory]', directory).realHover().then(() => {
cy.get(`[data-cy="run-all-specs-for-${directory}"]`).should('contain.text', `Run ${specNumber} spec${specNumber > 1 ? 's' : ''}`)
cy.get('[data-cy="play-button"]').should('exist')
})
}
it('does not show feature unless experimentalRunAllSpecs is enabled', () => {
mountWithTestingType({ experimentalRunAllSpecs: false })
cy.contains('button', 'Run all specs').should('not.exist')
cy.contains('[data-cy=spec-item-directory]', '__test__').realHover()
cy.contains('button', 'Run 5 specs').should('not.exist')
})
it('displays runAllSpecs when hovering over a spec-list directory row', () => {
mountWithTestingType({ experimentalRunAllSpecs: true })
hoverRunAllSpecs('__test__', 5)
hoverRunAllSpecs('frontend', 11)
hoverRunAllSpecs('components', 6)
cy.percySnapshot()
})
it('checks if functionality works after a search', () => {
mountWithTestingType({ experimentalRunAllSpecs: true, specFilter: 'base' })
hoverRunAllSpecs('__test__', 2)
hoverRunAllSpecs('frontend/components', 2)
hoverRunAllSpecs('Cell/test', 1)
})
it('can tab into run-all', () => {
mountWithTestingType({ experimentalRunAllSpecs: true })
cy.get('[data-cy=run-all-specs-for-__test__]').should('not.be.visible')
cy.tabUntil(($el) => {
return $el.text().includes('Run 5 specs')
})
cy.get('[data-cy=run-all-specs-for-__test__]').should('be.visible')
})
})
})
| cypress/packages/app/src/specs/SpecsList.cy.tsx/0 | {
"file_path": "cypress/packages/app/src/specs/SpecsList.cy.tsx",
"repo_id": "cypress",
"token_count": 5051
} | 84 |
<template>
<TrackedBanner
v-if="cohortOption"
:banner-id="bannerId"
data-cy="connect-project-banner"
status="info"
:title="t('specPage.banners.connectProject.title')"
class="mb-[16px]"
:icon="ConnectIcon"
dismissible
:has-banner-been-shown="hasBannerBeenShown"
:event-data="{
campaign: 'Create project',
medium: 'Specs Create Project Banner',
cohort: cohortOption.cohort
}"
>
<p class="mb-[24px]">
{{ cohortOption.value }}
</p>
<Button
:prefix-icon="ConnectIcon"
class="mt-[24px]"
data-cy="connect-project-button"
@click="openLoginConnectModal({utmMedium: 'Specs Create Project Banner' })"
>
{{ t('specPage.banners.connectProject.buttonLabel') }}
</Button>
</TrackedBanner>
</template>
<script setup lang="ts">
import ConnectIcon from '~icons/cy/chain-link_x16.svg'
import { useI18n } from '@cy/i18n'
import Button from '@cy/components/Button.vue'
import TrackedBanner from './TrackedBanner.vue'
import type { CohortOption } from '@packages/frontend-shared/src/gql-components/composables/useCohorts'
import { BannerIds } from '@packages/types'
import { useUserProjectStatusStore } from '@packages/frontend-shared/src/store/user-project-status-store'
const { openLoginConnectModal } = useUserProjectStatusStore()
defineProps<{
hasBannerBeenShown: boolean
cohortOption: CohortOption
}>()
const { t } = useI18n()
const bannerId = BannerIds.ACI_082022_CONNECT_PROJECT
</script>
| cypress/packages/app/src/specs/banners/ConnectProjectBanner.vue/0 | {
"file_path": "cypress/packages/app/src/specs/banners/ConnectProjectBanner.vue",
"repo_id": "cypress",
"token_count": 590
} | 85 |
import FlakySpecSummary from './FlakySpecSummary.vue'
describe('<FlakySpecSummary />', () => {
it('severities', () => {
cy.mount(() =>
<div>
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="low"
totalFlakyRuns={4}
totalRuns={50}
runsSinceLastFlake={15}
/>
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="medium"
totalFlakyRuns={14}
totalRuns={50}
runsSinceLastFlake={5}
/>
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="high"
totalFlakyRuns={24}
totalRuns={50}
runsSinceLastFlake={2}
/>
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity={'unknown_value'}
// @ts-ignore
totalFlakyRuns={null}
// @ts-ignore
totalRuns={null}
// @ts-ignore
runsSinceLastFlake={null}
/>,
</div>)
cy.findByTestId('flaky-specsummary-loading-1').should('be.visible')
cy.percySnapshot()
})
describe('flaky rate percentages', () => {
it('should round up to next integer if less than 99%', () => {
cy.mount(
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="high"
totalFlakyRuns={888}
totalRuns={1000}
runsSinceLastFlake={2}
/>,
)
cy.findByTestId('flaky-rate').should('have.text', '89% flaky rate')
})
it('should round down if between 99 and 100%', () => {
cy.mount(
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="high"
totalFlakyRuns={999}
totalRuns={1000}
runsSinceLastFlake={2}
/>,
)
cy.findByTestId('flaky-rate').should('have.text', '99% flaky rate')
})
})
describe('pluralization', () => {
it('should handle zero flaky runs and zero runs since last flake', () => {
cy.mount(
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="high"
totalFlakyRuns={0}
totalRuns={1000}
runsSinceLastFlake={0}
/>,
)
cy.findByTestId('flaky-runs').should('have.text', '0 flaky runs / 1000 total')
cy.findByTestId('last-flaky').should('have.text', 'Last run flaky')
})
it('should handle 1 flaky run and 1 run since last flake', () => {
cy.mount(
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="high"
totalFlakyRuns={1}
totalRuns={1000}
runsSinceLastFlake={1}
/>,
)
cy.findByTestId('flaky-runs').should('have.text', '1 flaky run / 1000 total')
cy.findByTestId('last-flaky').should('have.text', 'Last flaky 1 run ago')
})
it('should handle multiple flaky runs and multiple runs since last flake', () => {
cy.mount(
<FlakySpecSummary
specName="test"
specExtension=".cy.tsx"
severity="high"
totalFlakyRuns={2}
totalRuns={1000}
runsSinceLastFlake={2}
/>,
)
cy.findByTestId('flaky-runs').should('have.text', '2 flaky runs / 1000 total')
cy.findByTestId('last-flaky').should('have.text', 'Last flaky 2 runs ago')
})
})
})
| cypress/packages/app/src/specs/flaky-badge/FlakySpecSummary.cy.tsx/0 | {
"file_path": "cypress/packages/app/src/specs/flaky-badge/FlakySpecSummary.cy.tsx",
"repo_id": "cypress",
"token_count": 1780
} | 86 |
import { filters } from '../GeneratorsCommon'
import ReactComponentGeneratorStepOne from './ReactComponentGeneratorStepOne.vue'
import type { SpecGenerator } from '../types'
import ComponentGeneratorCard from './ComponentGeneratorCard.vue'
export const ReactComponentGenerator: SpecGenerator = {
card: ComponentGeneratorCard,
entry: ReactComponentGeneratorStepOne,
show: (currentProject) => currentProject?.codeGenFramework === 'react',
matches: filters.matchesCT,
id: 'reactComponent',
}
| cypress/packages/app/src/specs/generators/component/ReactComponentGenerator.tsx/0 | {
"file_path": "cypress/packages/app/src/specs/generators/component/ReactComponentGenerator.tsx",
"repo_id": "cypress",
"token_count": 139
} | 87 |
import fuzzySort from 'fuzzysort'
import type { FoundSpec } from '@packages/types'
import { ComputedRef, Ref, ref, watch } from 'vue'
import _ from 'lodash'
import { FuzzyFoundSpec, getPlatform } from './tree/useCollapsibleTree'
export function fuzzySortSpecs <T extends FuzzyFoundSpec> (specs: T[], searchValue: string) {
const normalizedSearchValue = normalizeSpecValue(searchValue)
const fuzzySortResult = fuzzySort
.go(normalizedSearchValue, specs, { keys: ['normalizedRelative', 'normalizedBaseName'], allowTypo: false, threshold: -10000 })
.map((result) => {
const [relative, baseName] = result
return {
...result.obj,
fuzzyIndexes: {
relative: relative?.indexes ?? [],
baseName: baseName?.indexes ?? [],
},
}
})
return fuzzySortResult
}
function normalizeSpecValue (name: string) {
const escapedPath = getPlatform() === 'win32' ? name.replaceAll('/', '\\') : name
// replace dash, underscore and space with common character (in this case dash)
// they are replaced and not removed to preserve string length (so highlighting works correctly)
const normalizedSymbols = escapedPath.replace(/[-_\s]/g, '-')
return normalizedSymbols
}
export function makeFuzzyFoundSpec (spec: FoundSpec): FuzzyFoundSpec {
return {
...spec,
normalizedBaseName: normalizeSpecValue(spec.baseName),
normalizedRelative: normalizeSpecValue(spec.relative),
fuzzyIndexes: {
relative: [],
baseName: [],
},
}
}
export function useCachedSpecs<S extends { absolute: string }> (
specs: ComputedRef<Readonly<S[]>>,
): Ref<Readonly<S[]>> {
const cachedSpecs: Ref<Readonly<S[]>> = ref([])
watch(specs, (currentSpecs, prevSpecs = []) => {
if (!_.isEqual(currentSpecs, prevSpecs)) {
cachedSpecs.value = currentSpecs
}
}, { immediate: true })
return cachedSpecs
}
// Used to split indexes from a baseName match to a fileName + extension (with cy extension) match
// For example, given a filename of Button.cy.tsx:
// - search of 'Butcytsx' yields indexes [0,1,2,7,8,10,11,12]
// - deriveIndexes yields
// {
// fileNameIndexes: [0,1,2], // indexes to highlight in "Button"
// extensionIndexes: [1,2,4,5,6] // indexes to highlight in ".cy.tsx"
// }
export function deriveIndexes (fileName: string, indexes: number[]) {
return indexes.reduce((acc, idx) => {
if (idx < fileName.length) {
acc.fileNameIndexes.push(idx)
} else {
acc.extensionIndexes.push(idx - fileName.length)
}
return acc
}, { fileNameIndexes: <number[]>[], extensionIndexes: <number[]>[] })
}
| cypress/packages/app/src/specs/spec-utils.ts/0 | {
"file_path": "cypress/packages/app/src/specs/spec-utils.ts",
"repo_id": "cypress",
"token_count": 921
} | 88 |
{
"extends": "../frontend-shared/tsconfig.json",
"include": [
"src/**/*.vue",
"src/**/*.tsx",
"src/**/*.ts",
"cypress/**/*.ts",
"cypress/**/*.tsx",
"*.d.ts",
"../frontend-shared/src/**/*.vue",
"../frontend-shared/src/**/*.tsx",
"../frontend-shared/cypress/**/*.ts"
],
"compilerOptions": {
"noImplicitThis": true,
"paths": {
"@cy/i18n": ["../frontend-shared/src/locales/i18n"],
"@cy/components/*": ["../frontend-shared/src/components/*"],
"@cy/gql-components/*": ["../frontend-shared/src/gql-components/*"],
"@cy/store/*": ["../frontend-shared/src/store/*"],
"@packages/*": ["../*"]
},
"allowJs": true,
"types": [
"cypress",
"cypress-real-events",
"@intlify/unplugin-vue-i18n/messages",
"@testing-library/cypress"
]
}
}
| cypress/packages/app/tsconfig.json/0 | {
"file_path": "cypress/packages/app/tsconfig.json",
"repo_id": "cypress",
"token_count": 409
} | 89 |
import os from 'os'
import path from 'path'
// @ts-ignore
import pkg from '@packages/root'
import type { AllCypressErrorNames } from '@packages/errors'
import type { TestingType } from '@packages/types'
import * as validate from './validation'
const BREAKING_OPTION_ERROR_KEY: Readonly<AllCypressErrorNames[]> = [
'COMPONENT_FOLDER_REMOVED',
'INTEGRATION_FOLDER_REMOVED',
'CONFIG_FILE_INVALID_ROOT_CONFIG',
'CONFIG_FILE_INVALID_ROOT_CONFIG_E2E',
'CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT',
'CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT',
'CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E',
'EXPERIMENTAL_COMPONENT_TESTING_REMOVED',
'EXPERIMENTAL_SAMESITE_REMOVED',
'EXPERIMENTAL_NETWORK_STUBBING_REMOVED',
'EXPERIMENTAL_RUN_EVENTS_REMOVED',
'EXPERIMENTAL_SESSION_SUPPORT_REMOVED',
'EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED',
'EXPERIMENTAL_SINGLE_TAB_RUN_MODE',
'EXPERIMENTAL_SHADOW_DOM_REMOVED',
'FIREFOX_GC_INTERVAL_REMOVED',
'PLUGINS_FILE_CONFIG_OPTION_REMOVED',
'VIDEO_UPLOAD_ON_PASSES_REMOVED',
'RENAMED_CONFIG_OPTION',
'TEST_FILES_RENAMED',
] as const
type ValidationOptions = {
testingType: TestingType | null
}
export type BreakingOptionErrorKey = typeof BREAKING_OPTION_ERROR_KEY[number]
export type OverrideLevel = 'any' | 'suite' | 'never'
interface ConfigOption {
name: string
defaultValue?: any
validation: Function
requireRestartOnChange?: 'server' | 'browser'
/**
* The list of test-time overrides levels supported by the configuration option. When undefined,
* it indicates the configuration value cannot be overridden via suite-/test-specific
* overrides or at run-time with Cypress.Config().
*/
overrideLevel?: OverrideLevel
}
interface DriverConfigOption extends ConfigOption {
isFolder?: boolean
isExperimental?: boolean
}
// Cypress run-time options
interface RuntimeConfigOption extends ConfigOption {
defaultValue: any
isInternal?: boolean
}
export interface BreakingOption {
/**
* The non-passive configuration option.
*/
name: string
/**
* String to summarize the error messaging that is logged.
*/
errorKey: BreakingOptionErrorKey
/**
* Array of testing types this config option is valid for
*/
testingTypes?: TestingType[]
/**
* Configuration value of the configuration option to check against.
*/
value?: string
/**
* The new configuration key that is replacing the existing configuration key.
*/
newName?: string
/**
* Whether to log the error message as a warning instead of throwing an error.
*/
isWarning?: boolean
/**
* Whether to show the error message in the launchpad
*/
showInLaunchpad?: boolean
}
const isValidConfig = (testingType: string, config: any, opts: ValidationOptions) => {
const status = validate.isPlainObject(testingType, config)
if (status !== true) {
return status
}
for (const rule of options) {
if (rule.name in config && rule.validation) {
const status = rule.validation(`${testingType}.${rule.name}`, config[rule.name], opts)
if (status !== true) {
return status
}
}
}
return true
}
export const defaultSpecPattern = {
e2e: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
component: '**/*.cy.{js,jsx,ts,tsx}',
}
export const defaultExcludeSpecPattern = {
e2e: '*.hot-update.js',
component: ['**/__snapshots__/*', '**/__image_snapshots__/*'],
}
// NOTE:
// If you add/remove/change a config value, make sure to update the following
// - cli/types/index.d.ts (including allowed config options on TestOptions)
//
// Add options in alphabetical order for better readability
const driverConfigOptions: Array<DriverConfigOption> = [
{
name: 'animationDistanceThreshold',
defaultValue: 5,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'arch',
defaultValue: () => os.arch(),
validation: validate.isString,
}, {
name: 'baseUrl',
defaultValue: null,
validation: validate.isFullyQualifiedUrl,
overrideLevel: 'any',
requireRestartOnChange: 'server',
}, {
name: 'blockHosts',
defaultValue: null,
validation: validate.isStringOrArrayOfStrings,
overrideLevel: 'any',
requireRestartOnChange: 'server',
}, {
name: 'chromeWebSecurity',
defaultValue: true,
validation: validate.isBoolean,
requireRestartOnChange: 'browser',
}, {
name: 'clientCertificates',
defaultValue: [],
validation: validate.isValidClientCertificatesSet,
requireRestartOnChange: 'server',
}, {
name: 'component',
// runner-ct overrides
defaultValue: {
specPattern: defaultSpecPattern.component,
indexHtmlFile: 'cypress/support/component-index.html',
},
validation: isValidConfig,
}, {
name: 'defaultCommandTimeout',
defaultValue: 4000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'downloadsFolder',
defaultValue: 'cypress/downloads',
validation: validate.isString,
isFolder: true,
requireRestartOnChange: 'browser',
}, {
name: 'e2e',
// e2e runner overrides
defaultValue: {
specPattern: defaultSpecPattern.e2e,
},
validation: isValidConfig,
}, {
name: 'env',
defaultValue: {},
validation: validate.isPlainObject,
overrideLevel: 'any',
}, {
name: 'execTimeout',
defaultValue: 60000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'experimentalCspAllowList',
defaultValue: false,
validation: validate.validateAny(validate.isBoolean, validate.isArrayIncludingAny('script-src-elem', 'script-src', 'default-src', 'form-action', 'child-src', 'frame-src')),
overrideLevel: 'never',
requireRestartOnChange: 'server',
}, {
name: 'experimentalFetchPolyfill',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
}, {
name: 'experimentalInteractiveRunEvents',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
requireRestartOnChange: 'server',
}, {
name: 'experimentalRunAllSpecs',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
}, {
name: 'experimentalMemoryManagement',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
}, {
name: 'experimentalModifyObstructiveThirdPartyCode',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
requireRestartOnChange: 'server',
}, {
name: 'experimentalSkipDomainInjection',
defaultValue: null,
validation: validate.isNullOrArrayOfStrings,
isExperimental: true,
requireRestartOnChange: 'server',
}, {
name: 'experimentalOriginDependencies',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
overrideLevel: 'any',
requireRestartOnChange: 'browser',
}, {
name: 'experimentalSourceRewriting',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
requireRestartOnChange: 'server',
}, {
name: 'experimentalSingleTabRunMode',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
requireRestartOnChange: 'server',
}, {
name: 'experimentalStudio',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
requireRestartOnChange: 'browser',
}, {
name: 'experimentalWebKitSupport',
defaultValue: false,
validation: validate.isBoolean,
isExperimental: true,
requireRestartOnChange: 'server',
}, {
name: 'fileServerFolder',
defaultValue: '',
validation: validate.isString,
isFolder: true,
requireRestartOnChange: 'server',
}, {
name: 'fixturesFolder',
defaultValue: 'cypress/fixtures',
validation: validate.isStringOrFalse,
isFolder: true,
requireRestartOnChange: 'server',
}, {
name: 'excludeSpecPattern',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? defaultExcludeSpecPattern.component : defaultExcludeSpecPattern.e2e,
validation: validate.isStringOrArrayOfStrings,
overrideLevel: 'any',
}, {
name: 'includeShadowDom',
defaultValue: false,
validation: validate.isBoolean,
overrideLevel: 'any',
}, {
name: 'keystrokeDelay',
defaultValue: 0,
validation: validate.isNumberOrFalse,
overrideLevel: 'any',
}, {
name: 'modifyObstructiveCode',
defaultValue: true,
validation: validate.isBoolean,
requireRestartOnChange: 'server',
}, {
name: 'numTestsKeptInMemory',
defaultValue: 50,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'platform',
defaultValue: () => os.platform(),
validation: validate.isString,
}, {
name: 'pageLoadTimeout',
defaultValue: 60000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'port',
defaultValue: null,
validation: validate.isNumber,
}, {
name: 'projectId',
defaultValue: null,
validation: validate.isString,
}, {
name: 'redirectionLimit',
defaultValue: 20,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'reporter',
defaultValue: 'spec',
validation: validate.isString,
overrideLevel: 'any',
}, {
name: 'reporterOptions',
defaultValue: null,
validation: validate.isPlainObject,
overrideLevel: 'any',
}, {
name: 'requestTimeout',
defaultValue: 5000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'resolvedNodePath',
defaultValue: null,
validation: validate.isString,
}, {
name: 'resolvedNodeVersion',
defaultValue: null,
validation: validate.isString,
}, {
name: 'responseTimeout',
defaultValue: 30000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
/**
* if experimentalStrategy is `detect-flake-and-pass-on-threshold`
* an no experimentalOptions are configured, the following configuration
* should be implicitly used:
* experimentalStrategy: 'detect-flake-and-pass-on-threshold',
* experimentalOptions: {
* maxRetries: 2,
* passesRequired: 2
* }
*
* if experimentalStrategy is `detect-flake-but-always-fail`
* an no experimentalOptions are configured, the following configuration
* should be implicitly used:
* experimentalStrategy: 'detect-flake-but-always-fail',
* experimentalOptions: {
* maxRetries: 2,
* stopIfAnyPassed: false
* }
*/
name: 'retries',
defaultValue: {
runMode: 0,
openMode: 0,
// these values MUST be populated in order to display the experiment correctly inside the project settings in open mode
experimentalStrategy: undefined,
experimentalOptions: undefined,
},
validation: validate.isValidRetriesConfig,
overrideLevel: 'any',
}, {
name: 'screenshotOnRunFailure',
defaultValue: true,
validation: validate.isBoolean,
overrideLevel: 'any',
}, {
name: 'screenshotsFolder',
defaultValue: 'cypress/screenshots',
validation: validate.isStringOrFalse,
isFolder: true,
requireRestartOnChange: 'server',
}, {
name: 'slowTestThreshold',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? 250 : 10000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'scrollBehavior',
defaultValue: 'top',
validation: validate.isOneOf('center', 'top', 'bottom', 'nearest', false),
overrideLevel: 'any',
}, {
name: 'supportFile',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? 'cypress/support/component.{js,jsx,ts,tsx}' : 'cypress/support/e2e.{js,jsx,ts,tsx}',
validation: validate.isStringOrFalse,
requireRestartOnChange: 'server',
}, {
name: 'supportFolder',
defaultValue: false,
validation: validate.isStringOrFalse,
isFolder: true,
requireRestartOnChange: 'server',
}, {
name: 'taskTimeout',
defaultValue: 60000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'testIsolation',
defaultValue: true,
validation: (key: string, value: any, opts: ValidationOptions) => {
const { testingType } = opts
let configOpts = [true, false]
if (testingType === 'component') {
configOpts.pop()
}
return validate.isOneOf(...configOpts)(key, value)
},
overrideLevel: 'suite',
}, {
name: 'trashAssetsBeforeRuns',
defaultValue: true,
validation: validate.isBoolean,
}, {
name: 'userAgent',
defaultValue: null,
validation: validate.isString,
requireRestartOnChange: 'browser',
}, {
name: 'video',
defaultValue: false,
validation: validate.isBoolean,
}, {
name: 'videoCompression',
defaultValue: false,
validation: validate.isValidCrfOrBoolean,
}, {
name: 'videosFolder',
defaultValue: 'cypress/videos',
validation: validate.isString,
isFolder: true,
}, {
name: 'viewportHeight',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? 500 : 660,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'viewportWidth',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? 500 : 1000,
validation: validate.isNumber,
overrideLevel: 'any',
}, {
name: 'waitForAnimations',
defaultValue: true,
validation: validate.isBoolean,
overrideLevel: 'any',
}, {
name: 'watchForFileChanges',
defaultValue: true,
validation: validate.isBoolean,
requireRestartOnChange: 'server',
},
{
name: 'specPattern',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? defaultSpecPattern.component : defaultSpecPattern.e2e,
validation: validate.isStringOrArrayOfStrings,
},
]
const runtimeOptions: Array<RuntimeConfigOption> = [
{
// Internal config field, useful to ignore the e2e specPattern set by the user
// or the default one when looking fot CT, it needs to be a config property because after
// having the final config that has the e2e property flattened/compacted
// we may not be able to get the value to ignore.
name: 'additionalIgnorePattern',
defaultValue: (options: Record<string, any> = {}) => options.testingType === 'component' ? defaultSpecPattern.e2e : [],
validation: validate.isStringOrArrayOfStrings,
isInternal: true,
}, {
name: 'autoOpen',
defaultValue: false,
validation: validate.isBoolean,
isInternal: true,
}, {
name: 'browsers',
defaultValue: [],
validation: validate.isValidBrowserList,
}, {
name: 'clientRoute',
defaultValue: '/__/',
validation: validate.isString,
isInternal: true,
}, {
name: 'configFile',
defaultValue: 'cypress.config.js',
validation: validate.isString,
// not truly internal, but can only be set via cli,
// so we don't consider it a "public" option
isInternal: true,
}, {
name: 'cypressBinaryRoot',
defaultValue: path.join(__dirname, '..', '..', '..'),
validation: validate.isString,
isInternal: true,
}, {
// ct-testing specific configuration
name: 'devServerPublicPathRoute',
defaultValue: '/__cypress/src',
validation: validate.isString,
isInternal: true,
}, {
name: 'hosts',
defaultValue: null,
validation: validate.isPlainObject,
}, {
name: 'isInteractive',
defaultValue: true,
validation: validate.isBoolean,
}, {
name: 'isTextTerminal',
defaultValue: false,
validation: validate.isBoolean,
isInternal: true,
}, {
name: 'morgan',
defaultValue: true,
validation: validate.isBoolean,
isInternal: true,
}, {
name: 'modifyObstructiveCode',
defaultValue: true,
validation: validate.isBoolean,
}, {
name: 'namespace',
defaultValue: '__cypress',
validation: validate.isString,
isInternal: true,
}, {
name: 'repoRoot',
defaultValue: null,
validation: validate.isString,
isInternal: true,
}, {
name: 'reporterRoute',
defaultValue: '/__cypress/reporter',
validation: validate.isString,
isInternal: true,
}, {
name: 'socketId',
defaultValue: null,
validation: validate.isString,
isInternal: true,
}, {
name: 'socketIoCookie',
defaultValue: '__socket',
validation: validate.isString,
isInternal: true,
}, {
name: 'socketIoRoute',
defaultValue: '/__socket',
validation: validate.isString,
isInternal: true,
}, {
name: 'version',
defaultValue: pkg.version,
validation: validate.isString,
isInternal: true,
}, {
name: 'protocolEnabled',
defaultValue: false,
validation: validate.isBoolean,
isInternal: true,
}, {
name: 'hideCommandLog',
defaultValue: false,
validation: validate.isBoolean,
isInternal: true,
},
{
name: 'hideRunnerUi',
defaultValue: false,
validation: validate.isBoolean,
isInternal: true,
},
]
export const options: Array<DriverConfigOption | RuntimeConfigOption> = [
...driverConfigOptions,
...runtimeOptions,
]
/**
* Values not allowed in 10.X+ in the root, e2e and component config
*/
export const breakingOptions: Readonly<BreakingOption[]> = [
{
name: 'blacklistHosts',
errorKey: 'RENAMED_CONFIG_OPTION',
newName: 'blockHosts',
isWarning: false,
}, {
name: 'componentFolder',
errorKey: 'COMPONENT_FOLDER_REMOVED',
isWarning: false,
}, {
name: 'experimentalComponentTesting',
errorKey: 'EXPERIMENTAL_COMPONENT_TESTING_REMOVED',
isWarning: false,
}, {
name: 'experimentalGetCookiesSameSite',
errorKey: 'EXPERIMENTAL_SAMESITE_REMOVED',
isWarning: true,
}, {
name: 'experimentalNetworkStubbing',
errorKey: 'EXPERIMENTAL_NETWORK_STUBBING_REMOVED',
isWarning: true,
}, {
name: 'experimentalRunEvents',
errorKey: 'EXPERIMENTAL_RUN_EVENTS_REMOVED',
isWarning: true,
}, {
name: 'experimentalSessionSupport',
errorKey: 'EXPERIMENTAL_SESSION_SUPPORT_REMOVED',
isWarning: true,
}, {
name: 'experimentalSessionAndOrigin',
errorKey: 'EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED',
isWarning: true,
}, {
name: 'experimentalShadowDomSupport',
errorKey: 'EXPERIMENTAL_SHADOW_DOM_REMOVED',
isWarning: true,
}, {
name: 'firefoxGcInterval',
errorKey: 'FIREFOX_GC_INTERVAL_REMOVED',
isWarning: true,
}, {
name: 'ignoreTestFiles',
errorKey: 'TEST_FILES_RENAMED',
newName: 'excludeSpecPattern',
isWarning: false,
}, {
name: 'integrationFolder',
errorKey: 'INTEGRATION_FOLDER_REMOVED',
isWarning: false,
}, {
name: 'pluginsFile',
errorKey: 'PLUGINS_FILE_CONFIG_OPTION_REMOVED',
isWarning: false,
},
{
name: 'testFiles',
errorKey: 'TEST_FILES_RENAMED',
newName: 'specPattern',
isWarning: false,
}, {
name: 'videoUploadOnPasses',
errorKey: 'VIDEO_UPLOAD_ON_PASSES_REMOVED',
isWarning: true,
},
] as const
export const breakingRootOptions: Array<BreakingOption> = [
{
name: 'baseUrl',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG_E2E',
isWarning: false,
testingTypes: ['e2e'],
}, {
name: 'excludeSpecPattern',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG',
isWarning: false,
testingTypes: ['component', 'e2e'],
}, {
name: 'indexHtmlFile',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG_COMPONENT',
isWarning: false,
testingTypes: ['component'],
}, {
name: 'slowTestThreshold',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG',
isWarning: false,
testingTypes: ['component', 'e2e'],
}, {
name: 'specPattern',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG',
isWarning: false,
testingTypes: ['component', 'e2e'],
}, {
name: 'supportFile',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG',
isWarning: false,
testingTypes: ['component', 'e2e'],
}, {
name: 'testIsolation',
errorKey: 'CONFIG_FILE_INVALID_ROOT_CONFIG',
isWarning: false,
testingTypes: ['e2e'],
}, {
name: 'experimentalRunAllSpecs',
errorKey: 'EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY',
isWarning: false,
testingTypes: ['e2e'],
},
{
name: 'experimentalOriginDependencies',
errorKey: 'EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY',
isWarning: false,
testingTypes: ['e2e'],
},
{
name: 'experimentalSkipDomainInjection',
errorKey: 'EXPERIMENTAL_USE_DEFAULT_DOCUMENT_DOMAIN_E2E_ONLY',
isWarning: false,
testingTypes: ['e2e'],
},
]
export const testingTypeBreakingOptions: { e2e: Array<BreakingOption>, component: Array<BreakingOption> } = {
e2e: [
{
name: 'experimentalSingleTabRunMode',
errorKey: 'EXPERIMENTAL_SINGLE_TAB_RUN_MODE',
isWarning: false,
},
{
name: 'indexHtmlFile',
errorKey: 'CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_E2E',
isWarning: false,
},
],
component: [
{
name: 'baseUrl',
errorKey: 'CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT',
isWarning: false,
},
{
name: 'experimentalStudio',
errorKey: 'EXPERIMENTAL_STUDIO_E2E_ONLY',
isWarning: false,
},
{
name: 'testIsolation',
errorKey: 'CONFIG_FILE_INVALID_TESTING_TYPE_CONFIG_COMPONENT',
isWarning: false,
},
{
name: 'experimentalRunAllSpecs',
errorKey: 'EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY',
isWarning: false,
},
{
name: 'experimentalOriginDependencies',
errorKey: 'EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY',
isWarning: false,
},
{
name: 'experimentalSkipDomainInjection',
errorKey: 'EXPERIMENTAL_USE_DEFAULT_DOCUMENT_DOMAIN_E2E_ONLY',
isWarning: false,
},
],
}
| cypress/packages/config/src/options.ts/0 | {
"file_path": "cypress/packages/config/src/options.ts",
"repo_id": "cypress",
"token_count": 8348
} | 90 |
module.exports = {
e2e: {},
}
| cypress/packages/config/test/__babel_fixtures__/adding-component/module-exports-ts/code.ts/0 | {
"file_path": "cypress/packages/config/test/__babel_fixtures__/adding-component/module-exports-ts/code.ts",
"repo_id": "cypress",
"token_count": 17
} | 91 |
import { expect } from 'chai'
import {
hideKeys,
setUrls,
coerce,
isResolvedConfigPropDefault,
} from '../src/utils'
import {
utils as projectUtils,
} from '../src/project/utils'
describe('config/src/utils', () => {
beforeEach(function () {
delete process.env.CYPRESS_COMMERCIAL_RECOMMENDATIONS
})
describe('hideKeys', () => {
it('removes middle part of the string', () => {
const hidden = hideKeys('12345-xxxx-abcde')
expect(hidden).to.equal('12345...abcde')
})
it('returns undefined for missing key', () => {
expect(hideKeys()).to.be.undefined
})
// https://github.com/cypress-io/cypress/issues/14571
it('returns undefined for non-string argument', () => {
expect(hideKeys(true)).to.be.undefined
expect(hideKeys(1234)).to.be.undefined
})
})
context('.setUrls', () => {
it('does not mutate existing obj', () => {
const obj = {}
expect(setUrls(obj)).not.to.eq(obj)
})
it('uses baseUrl when set', () => {
const obj = {
port: 65432,
baseUrl: 'https://www.google.com',
clientRoute: '/__/',
}
const urls = setUrls(obj)
expect(urls.browserUrl).to.eq('https://www.google.com/__/')
expect(urls.proxyUrl).to.eq('http://localhost:65432')
})
it('strips baseUrl to host when set', () => {
const obj = {
port: 65432,
baseUrl: 'http://localhost:9999/app/?foo=bar#index.html',
clientRoute: '/__/',
}
const urls = setUrls(obj)
expect(urls.browserUrl).to.eq('http://localhost:9999/__/')
expect(urls.proxyUrl).to.eq('http://localhost:65432')
})
})
context('coerce', () => {
beforeEach(function () {
this.env = process.env
})
afterEach(function () {
process.env = this.env
})
it('coerces string', () => {
expect(coerce('foo')).to.eq('foo')
})
it('coerces string from process.env', () => {
process.env['CYPRESS_STRING'] = 'bar'
const cypressEnvVar = projectUtils.getProcessEnvVars(process.env)
expect(coerce(cypressEnvVar)).to.deep.include({ STRING: 'bar' })
})
it('coerces number', () => {
expect(coerce('123')).to.eq(123)
})
// NOTE: When exporting shell variables, they are saved in `process.env` as strings, hence why
// all `process.env` variables are assigned as strings in these unit tests
it('coerces number from process.env', () => {
process.env['CYPRESS_NUMBER'] = '8000'
const cypressEnvVar = projectUtils.getProcessEnvVars(process.env)
expect(coerce(cypressEnvVar)).to.deep.include({ NUMBER: 8000 })
})
it('coerces boolean', () => {
expect(coerce('true')).to.be.true
})
it('coerces boolean from process.env', () => {
process.env['CYPRESS_BOOLEAN'] = 'false'
const cypressEnvVar = projectUtils.getProcessEnvVars(process.env)
expect(coerce(cypressEnvVar)).to.deep.include({ BOOLEAN: false })
})
// https://github.com/cypress-io/cypress/issues/8818
it('coerces JSON string', () => {
expect(coerce('[{"type": "foo", "value": "bar"}, {"type": "fizz", "value": "buzz"}]')).to.deep.equal(
[{ 'type': 'foo', 'value': 'bar' }, { 'type': 'fizz', 'value': 'buzz' }],
)
})
// https://github.com/cypress-io/cypress/issues/8818
it('coerces JSON string from process.env', () => {
process.env['CYPRESS_stringified_json'] = '[{"type": "foo", "value": "bar"}, {"type": "fizz", "value": "buzz"}]'
const cypressEnvVar = projectUtils.getProcessEnvVars(process.env)
const coercedCypressEnvVar = coerce(cypressEnvVar)
expect(coercedCypressEnvVar).to.have.keys('stringified_json')
expect(coercedCypressEnvVar['stringified_json']).to.deep.equal([{ 'type': 'foo', 'value': 'bar' }, { 'type': 'fizz', 'value': 'buzz' }])
})
it('coerces array', () => {
expect(coerce('[foo,bar]')).to.have.members(['foo', 'bar'])
})
it('coerces array from process.env', () => {
process.env['CYPRESS_ARRAY'] = '[google.com,yahoo.com]'
const cypressEnvVar = projectUtils.getProcessEnvVars(process.env)
const coercedCypressEnvVar = coerce(cypressEnvVar)
expect(coercedCypressEnvVar).to.have.keys('ARRAY')
expect(coercedCypressEnvVar['ARRAY']).to.have.members(['google.com', 'yahoo.com'])
})
it('defaults value with multiple types to string', () => {
expect(coerce('123foo456')).to.eq('123foo456')
})
})
context('.isResolvedConfigPropDefault', () => {
it('returns true if value is default value', () => {
const options = {
resolved: {
baseUrl: { from: 'default' },
},
}
expect(isResolvedConfigPropDefault(options, 'baseUrl')).to.be.true
})
it('returns false if value is not default value', () => {
const options = {
resolved: {
baseUrl: { from: 'cli' },
},
}
expect(isResolvedConfigPropDefault(options, 'baseUrl')).to.be.false
})
})
})
| cypress/packages/config/test/utils.spec.ts/0 | {
"file_path": "cypress/packages/config/test/utils.spec.ts",
"repo_id": "cypress",
"token_count": 2127
} | 92 |
import type { NexusGenObjects, NexusGenUnions } from '@packages/graphql/src/gen/nxs.gen'
import assert from 'assert'
import path from 'path'
import type { DataContext } from '..'
import { SpecOptions, codeGenerator } from '../codegen'
import templates from '../codegen/templates'
import type { CodeGenType } from '../gen/graphcache-config.gen'
import { visit } from 'ast-types'
export interface ReactComponentDescriptor {
exportName: string
isDefault: boolean
}
export class CodegenActions {
constructor (private ctx: DataContext) {}
async getReactComponentsFromFile (filePath: string, reactDocgen?: typeof import('react-docgen')): Promise<{components: ReactComponentDescriptor[], errored?: boolean }> {
try {
// this dance to get react-docgen is for now because react-docgen is a module and our typescript settings are set up to transpile to commonjs
// which will require the module, which will fail because it's an es module. This is a temporary workaround.
let actualReactDocgen = reactDocgen
if (!actualReactDocgen) {
actualReactDocgen = await import('react-docgen')
}
const { parse: parseReactComponent, builtinResolvers: reactDocgenResolvers } = actualReactDocgen
const src = await this.ctx.fs.readFile(filePath, 'utf8')
const exportResolver: ExportResolver = new Map()
let result = parseReactComponent(src, {
resolver: findAllWithLink(exportResolver, reactDocgenResolvers),
babelOptions: {
parserOpts: {
plugins: ['typescript', 'jsx'],
},
},
})
// types appear to be incorrect in react-docgen@6.0.0-alpha.3
// TODO: update when 6.0.0 stable is out for fixed types.
const defs = (Array.isArray(result) ? result : [result]) as { displayName: string }[]
const resolvedDefs = defs.reduce<ReactComponentDescriptor[]>((acc, descriptor) => {
const displayName = descriptor.displayName || ''
const resolved = exportResolver.get(displayName)
// Limitation of resolving an export to a detected react component means we will filter out
// some valid components, but trying to generate them without knowing what the exportName is or
// if it is a default export will lead to bugs
if (resolved) {
acc.push(resolved)
}
return acc
}, [])
return { components: resolvedDefs }
} catch (err) {
this.ctx.debug(err)
// react-docgen throws an error if it doesn't find any components in a file.
// This is okay for our purposes, so if this is the error, catch it and return [].
if (err.message === 'No suitable component definition found.') {
return { components: [] }
}
return { errored: true, components: [] }
}
}
async codeGenSpec (codeGenCandidate: string, codeGenType: CodeGenType, componentName?: string, isDefault?: boolean): Promise<NexusGenUnions['GeneratedSpecResult']> {
const project = this.ctx.currentProject
assert(project, 'Cannot create spec without currentProject.')
const getCodeGenPath = () => {
return codeGenType === 'e2e'
? this.ctx.path.join(
project,
codeGenCandidate,
)
: codeGenCandidate
}
const codeGenPath = getCodeGenPath()
const { specPattern = [] } = await this.ctx.project.specPatterns()
const newSpecCodeGenOptions = new SpecOptions({
codeGenPath,
codeGenType,
framework: this.getWizardFrameworkFromConfig(),
isDefaultSpecPattern: await this.ctx.project.getIsDefaultSpecPattern(),
specPattern,
currentProject: this.ctx.currentProject,
specs: this.ctx.project.specs,
componentName,
isDefault,
})
let codeGenOptions = await newSpecCodeGenOptions.getCodeGenOptions()
const codeGenResults = await codeGenerator(
{ templateDir: templates[codeGenOptions.templateKey], target: codeGenOptions.overrideCodeGenDir || path.parse(codeGenPath).dir },
codeGenOptions,
)
if (!codeGenResults.files[0] || codeGenResults.failed[0]) {
throw (codeGenResults.failed[0] || 'Unable to generate spec')
}
const [newSpec] = codeGenResults.files
const cfg = await this.ctx.project.getConfig()
if (cfg && this.ctx.currentProject) {
const testingType = (codeGenType === 'component') ? 'component' : 'e2e'
await this.ctx.actions.project.setSpecsFoundBySpecPattern({
projectRoot: this.ctx.currentProject,
testingType,
specPattern: cfg.specPattern ?? [],
configSpecPattern: cfg.specPattern ?? [],
excludeSpecPattern: cfg.excludeSpecPattern,
additionalIgnorePattern: cfg.additionalIgnorePattern,
})
}
return {
status: 'valid',
file: { absolute: newSpec.file, contents: newSpec.content },
description: 'Generated spec',
}
}
get defaultE2EPath () {
const projectRoot = this.ctx.currentProject
assert(projectRoot, `Cannot create e2e directory without currentProject.`)
return path.join(projectRoot, 'cypress', 'e2e')
}
async e2eExamples (): Promise<NexusGenObjects['ScaffoldedFile'][]> {
const projectRoot = this.ctx.currentProject
assert(projectRoot, `Cannot create spec without currentProject.`)
const results = await codeGenerator(
{ templateDir: templates['e2eExamples'], target: this.defaultE2EPath },
{},
)
if (results.failed.length) {
throw new Error(`Failed generating files: ${results.failed.map((e) => `${e}`)}`)
}
return results.files.map(({ status, file, content }) => {
return {
status: (status === 'add' || status === 'overwrite') ? 'valid' : 'skipped',
file: { absolute: file, contents: content },
description: 'Generated spec',
}
})
}
getWizardFrameworkFromConfig (): Cypress.ResolvedComponentFrameworkDefinition | undefined {
const config = this.ctx.lifecycleManager.loadedConfigFile
// If devServer is a function, they are using a custom dev server.
if (!config?.component?.devServer || typeof config?.component?.devServer === 'function') {
return undefined
}
// @ts-ignore - because of the conditional above, we know that devServer isn't a function
return this.ctx.coreData.wizard.frameworks.find((framework) => framework.configFramework === config?.component?.devServer.framework)
}
}
type ExportResolver = Map<string, ReactComponentDescriptor>
function findAllWithLink (exportResolver: ExportResolver, reactDocgenResolvers: typeof import('react-docgen').builtinResolvers) {
return (fileState: any) => {
visit(fileState.ast, {
// export const Foo, export { Foo, Bar }, export function FooBar () { ... }
visitExportNamedDeclaration: (path) => {
const declaration = path.node.declaration as any
if (declaration) { // export const Foo
if (declaration.id) {
exportResolver.set(declaration.id.name, { exportName: declaration.id.name, isDefault: false })
} else { // export const Foo, Bar
(path.node.declaration as any).declarations.forEach((node: any) => {
const id = node.name ?? node.id?.name
if (id) {
exportResolver.set(id, { exportName: id, isDefault: false })
}
})
}
} else { // export { Foo, Bar }
path.node.specifiers?.forEach((node) => {
if (!node.local?.name) {
return
}
if (node.exported?.name === 'default') { // export { Foo as default }
exportResolver.set(node.local.name, {
exportName: node.local.name,
isDefault: true,
})
} else {
exportResolver.set(node.local.name, {
exportName: node.exported.name,
isDefault: false,
})
}
})
}
return false
},
// export default Foo
visitExportDefaultDeclaration: (path) => {
const declaration: any = path.node.declaration
const id: string = declaration.name || declaration.id?.name
if (id) { // export default Foo
exportResolver.set(id, {
exportName: id,
isDefault: true,
})
} else { // export default () => {}
exportResolver.set('', {
exportName: 'Component',
isDefault: true,
})
}
return false
},
})
const exportedDefinitionsResolver = new reactDocgenResolvers.FindExportedDefinitionsResolver()
return exportedDefinitionsResolver.resolve(fileState)
}
}
| cypress/packages/data-context/src/actions/CodegenActions.ts/0 | {
"file_path": "cypress/packages/data-context/src/actions/CodegenActions.ts",
"repo_id": "cypress",
"token_count": 3361
} | 93 |
import * as fs from 'fs-extra'
import { isBinaryFile } from 'isbinaryfile'
import * as path from 'path'
import * as ejs from 'ejs'
import fm from 'front-matter'
import _ from 'lodash'
import Debug from 'debug'
const debug = Debug('cypress:data-context:codegen:code-generator')
export interface Action {
templateDir: string
target: string
overwrite?: boolean
}
export interface CodeGenResult {
status: 'add' | 'overwrite' | 'skipped'
type: 'text' | 'binary'
file: string
content: string
}
export interface CodeGenResults {
files: Array<CodeGenResult>
failed: Array<Error>
}
/**
* Utility for generating files from ejs templates or for general scaffolding purposes.
* Given a template directory, all files within will be moved to the target directory specified whilst
* maintaining the folder hierarchy. It supports both text and binary files, with text files having the
* additional ability to be rendered with .ejs support meaning any arguments passed in can be interpolated
* into the file. For custom file naming, front-matter can be used to specify the output fileName.
*/
export async function codeGenerator (
action: Action,
args: { [key: string]: any },
): Promise<CodeGenResults> {
const templateFiles = await allFilesInDir(action.templateDir)
const codeGenResults: CodeGenResults = { files: [], failed: [] }
const scaffoldResults = await Promise.all(templateFiles.map(async (file) => {
const isBinary = await isBinaryFile(file)
const parsedFile = path.parse(file)
const processBinaryFile = async () => {
const rawFileContent = await fs.readFile(file)
const computedPath = computePath(
action.templateDir,
action.target,
file,
args,
)
return { computedPath, content: rawFileContent, type: 'binary' } as const
}
const processTextFile = async () => {
const fileContent = (await fs.readFile(file)).toString()
const { body, renderedAttributes } = frontMatter(fileContent, args)
const computedPath = computePath(
action.templateDir,
action.target,
path.join(
parsedFile.dir,
renderedAttributes.fileName || parsedFile.base,
),
args,
)
const renderedTemplate = ejs.render(body, args)
return { computedPath, content: renderedTemplate, type: 'text' } as const
}
try {
const { content, computedPath, type } = isBinary
? await processBinaryFile()
: await processTextFile()
const exists = await fileExists(computedPath)
const status = !exists
? 'add'
: exists && action.overwrite
? 'overwrite'
: 'skipped'
if (status === 'add' || status === 'overwrite') {
await fs.outputFile(computedPath, content)
}
return {
file: computedPath,
type,
status,
content: content.toString(),
} as const
} catch (e) {
return e instanceof Error ? e : new Error(String(e))
}
}))
return scaffoldResults.reduce((accum, result) => {
if (result instanceof Error) {
accum.failed.push(result)
} else {
accum.files.push(result)
}
return accum
}, codeGenResults)
}
function computePath (
srcFolder: string,
target: string,
filePath: string,
substitutions: { [k: string]: any },
): string {
const relativeFromSrcFolder = path.relative(srcFolder, filePath)
let computedPath = path.join(target, relativeFromSrcFolder)
Object.entries(substitutions).forEach(([propertyName, value]) => {
computedPath = computedPath.split(`{{${propertyName}}}`).join(value)
})
return computedPath
}
async function allFilesInDir (parent: string): Promise<string[]> {
const dirs = await fs.readdir(parent)
const result = await Promise.all(dirs.map(async (dir) => {
const child = path.join(parent, dir)
const isDir = (await fs.stat(child)).isDirectory()
return isDir ? await allFilesInDir(child) : child
}))
return _.flatten(result)
}
function frontMatter (content: string, args: { [key: string]: any }) {
const { attributes, body } = fm(content, { allowUnsafe: true }) as {
attributes: { [key: string]: string }
body: string
}
const renderedAttributes = Object.entries(attributes).reduce(
(acc, [key, val]) => ({ ...acc, [key]: ejs.render(val, args) }),
{} as { [key: string]: string },
)
return { body, renderedAttributes }
}
async function fileExists (absolute: string) {
try {
await fs.access(absolute, fs.constants.F_OK)
return true
} catch (e) {
return false
}
}
export async function hasNonExampleSpec (testTemplateDir: string, specs: string[]): Promise<boolean> {
debug(`hasNonExampleSpec - calling with template directory "${testTemplateDir}" and ${specs.length}`)
const dirExists = await fileExists(testTemplateDir)
if (!dirExists) {
throw new Error(`Template directory does not exist: ${testTemplateDir}`)
}
const templateFiles = await allFilesInDir(testTemplateDir)
const specInTemplates = (spec: String): boolean => {
debug(`hasNonExampleSpec - checking for spec ${spec}`)
return templateFiles.some((templateFile) => templateFile.substring(testTemplateDir.length + 1) === spec)
}
return specs.some((spec) => !specInTemplates(spec))
}
export async function getExampleSpecPaths (testTemplateDir: string): Promise<string[]> {
debug(`getExampleSpecPaths - calling with template directory "${testTemplateDir}"`)
const dirExists = await fileExists(testTemplateDir)
if (!dirExists) {
throw new Error(`Template directory does not exist: ${testTemplateDir}`)
}
const templateFiles = await allFilesInDir(testTemplateDir)
return templateFiles.map((templateFile) => templateFile.substring(testTemplateDir.length + 1))
}
| cypress/packages/data-context/src/codegen/code-generator.ts/0 | {
"file_path": "cypress/packages/data-context/src/codegen/code-generator.ts",
"repo_id": "cypress",
"token_count": 1973
} | 94 |
/**
* The "Project Lifecycle" is the centralized manager for the project,
* config, browser, and the number of possible states that can occur based
* on inputs that change these behaviors.
*
* See `guides/app-lifecycle.md` for documentation on the project & possible
* states that exist, and how they are managed.
*/
import path from 'path'
import _ from 'lodash'
import resolve from 'resolve'
import fs from 'fs'
import { getError, CypressError, ConfigValidationFailureInfo } from '@packages/errors'
import type { DataContext } from '..'
import assert from 'assert'
import type { AllModeOptions, FoundBrowser, FullConfig, TestingType } from '@packages/types'
import { autoBindDebug } from '../util/autoBindDebug'
import { EventCollectorSource, GitDataSource, LegacyCypressConfigJson } from '../sources'
import { OnFinalConfigLoadedOptions, ProjectConfigManager } from './ProjectConfigManager'
import pDefer from 'p-defer'
import { EventRegistrar } from './EventRegistrar'
import { getServerPluginHandlers, resetPluginHandlers } from '../util/pluginHandlers'
import { detectLanguage } from '@packages/scaffold-config'
import { validateNeedToRestartOnChange } from '@packages/config'
import { MAJOR_VERSION_FOR_CONTENT } from '@packages/types'
import { telemetry } from '@packages/telemetry'
export interface SetupFullConfigOptions {
projectName: string
projectRoot: string
cliConfig: Partial<Cypress.ConfigOptions>
config: Partial<Cypress.ConfigOptions>
envFile: Partial<Cypress.ConfigOptions>
options: Partial<AllModeOptions>
}
const POTENTIAL_CONFIG_FILES = [
'cypress.config.ts',
'cypress.config.mjs',
'cypress.config.cjs',
'cypress.config.js',
]
/**
* All of the APIs injected from @packages/server & @packages/config
* since these are not strictly typed
*/
export interface InjectedConfigApi {
cypressVersion: string
validateConfig<T extends Cypress.ConfigOptions>(config: Partial<T>, onErr: (errMsg: ConfigValidationFailureInfo | string) => never): T
allowedConfig(config: Cypress.ConfigOptions): Cypress.ConfigOptions
updateWithPluginValues(config: FullConfig, modifiedConfig: Partial<Cypress.ConfigOptions>, testingType: TestingType): FullConfig
setupFullConfigWithDefaults(config: SetupFullConfigOptions): Promise<FullConfig>
}
export interface ProjectMetaState {
isUsingTypeScript: boolean
hasLegacyCypressJson: boolean
hasCypressEnvFile: boolean
hasValidConfigFile: boolean
hasSpecifiedConfigViaCLI: false | string
allFoundConfigFiles: string[]
needsCypressJsonMigration: boolean
isProjectUsingESModules: boolean
}
const PROJECT_META_STATE: ProjectMetaState = {
isUsingTypeScript: false,
hasLegacyCypressJson: false,
allFoundConfigFiles: [],
hasCypressEnvFile: false,
hasSpecifiedConfigViaCLI: false,
hasValidConfigFile: false,
needsCypressJsonMigration: false,
isProjectUsingESModules: false,
}
export class ProjectLifecycleManager {
private _currentTestingType: TestingType | null = null
private _runModeExitEarly: ((error: Error) => void) | undefined
private _projectRoot: string | undefined
private _configManager: ProjectConfigManager | undefined
private _projectMetaState: ProjectMetaState = { ...PROJECT_META_STATE }
private _pendingInitialize?: pDefer.DeferredPromise<FullConfig>
private _cachedInitialConfig: Cypress.ConfigOptions | undefined
private _cachedFullConfig: FullConfig | undefined
private _initializedProject: unknown | undefined
private _eventRegistrar: EventRegistrar
constructor (private ctx: DataContext) {
this._eventRegistrar = new EventRegistrar()
if (ctx.coreData.currentProject) {
this._setCurrentProject(ctx.coreData.currentProject)
}
return autoBindDebug(this)
}
get git () {
return this.ctx.coreData.currentProjectGitInfo
}
async getProjectId (): Promise<string | null> {
try {
// No need to kick off config initialization if we need to migrate
if (this.ctx.migration.needsCypressJsonMigration()) {
return null
}
const contents = await this.ctx.project.getConfig()
return contents.projectId ?? null
} catch {
return null
}
}
get metaState () {
return Object.freeze(this._projectMetaState)
}
get configFile () {
return this.ctx.modeOptions.configFile ?? (this._configManager?.configFilePath && path.basename(this._configManager.configFilePath)) ?? 'cypress.config.js'
}
get configFilePath () {
assert(this._configManager, 'Cannot retrieve config file path without a config manager')
return this._configManager.configFilePath
}
setConfigFilePath (fileName: string) {
assert(this._configManager, 'Cannot set config file path without a config manager')
this._configManager.configFilePath = this._pathToFile(fileName)
}
get envFilePath () {
return path.join(this.projectRoot, 'cypress.env.json')
}
get browsers () {
if (this.loadedFullConfig) {
return this.loadedFullConfig.browsers as FoundBrowser[]
}
return null
}
get isLoadingConfigFile () {
return this._configManager?.isLoadingConfigFile
}
get isLoadingNodeEvents () {
return this._configManager?.isLoadingNodeEvents
}
get isFullConfigReady () {
return this._configManager?.isFullConfigReady
}
get loadedConfigFile (): Partial<Cypress.ConfigOptions> | null {
return this._cachedInitialConfig ?? null
}
get loadedFullConfig (): FullConfig | null {
return this._cachedFullConfig ?? null
}
get projectRoot () {
assert(this._projectRoot, 'Expected projectRoot to be set in ProjectLifecycleManager')
return this._projectRoot
}
get projectTitle () {
return path.basename(this.projectRoot)
}
get fileExtensionToUse () {
return this.metaState.isUsingTypeScript ? 'ts' : 'js'
}
get eventProcessPid () {
return this._configManager?.eventProcessPid
}
async clearCurrentProject () {
await this.resetInternalState()
this._initializedProject = undefined
this._projectRoot = undefined
}
private getPackageManagerUsed (projectRoot: string) {
if (fs.existsSync(path.join(projectRoot, 'package-lock.json'))) {
return 'npm'
}
if (fs.existsSync(path.join(projectRoot, 'yarn.lock'))) {
return 'yarn'
}
if (fs.existsSync(path.join(projectRoot, 'pnpm-lock.yaml'))) {
return 'pnpm'
}
return 'npm'
}
private createConfigManager () {
return new ProjectConfigManager({
ctx: this.ctx,
configFile: this.configFile,
projectRoot: this.projectRoot,
handlers: getServerPluginHandlers(),
hasCypressEnvFile: this._projectMetaState.hasCypressEnvFile,
eventRegistrar: this._eventRegistrar,
onError: this.onLoadError,
onInitialConfigLoaded: (initialConfig: Cypress.ConfigOptions) => {
this._cachedInitialConfig = initialConfig
this.ctx.emitter.toLaunchpad()
this.ctx.emitter.toApp()
},
onFinalConfigLoaded: async (finalConfig: FullConfig, options: OnFinalConfigLoadedOptions) => {
if (this._currentTestingType && finalConfig.specPattern) {
await this.ctx.actions.project.setSpecsFoundBySpecPattern({
projectRoot: this.projectRoot,
testingType: this._currentTestingType,
specPattern: this.ctx.modeOptions.spec || finalConfig.specPattern,
configSpecPattern: finalConfig.specPattern,
excludeSpecPattern: finalConfig.excludeSpecPattern,
additionalIgnorePattern: finalConfig.additionalIgnorePattern,
})
}
if (this._currentTestingType === 'component') {
const span = telemetry.startSpan({ name: 'dataContext:ct:startDevServer' })
const devServerOptions = await this.ctx._apis.projectApi.getDevServer().start({ specs: this.ctx.project.specs, config: finalConfig })
// If we received a cypressConfig.port we want to null it out
// because we propagated it into the devServer.port and it is
// later set as baseUrl which cypress is launched into
//
// The special case is cypress in cypress testing. If that's the case, we still need
// the wrapper cypress to be running on 4455
if (!process.env.CYPRESS_INTERNAL_E2E_TESTING_SELF) {
finalConfig.port = null
} else {
finalConfig.port = 4455
}
span?.end()
if (!devServerOptions?.port) {
throw getError('CONFIG_FILE_DEV_SERVER_INVALID_RETURN', devServerOptions)
}
finalConfig.baseUrl = `http://localhost:${devServerOptions?.port}`
}
const pingBaseUrl = this._cachedFullConfig && this._cachedFullConfig.baseUrl !== finalConfig.baseUrl
const restartOnChange = validateNeedToRestartOnChange(this._cachedFullConfig, finalConfig)
this._cachedFullConfig = finalConfig
// This happens automatically with openProjectCreate in run mode
if (!this.ctx.isRunMode) {
const shouldRelaunchBrowser = this.ctx.coreData.app.browserStatus !== 'closed'
if (!this._initializedProject) {
this._initializedProject = await this.ctx.actions.project.initializeActiveProject({})
} else if (restartOnChange.server) {
this.ctx.project.setRelaunchBrowser(shouldRelaunchBrowser)
this._initializedProject = await this.ctx.actions.project.initializeActiveProject({})
} else if ((restartOnChange.browser || options.shouldRestartBrowser) && shouldRelaunchBrowser) {
this.ctx.project.setRelaunchBrowser(shouldRelaunchBrowser)
await this.ctx.actions.browser.closeBrowser()
await this.ctx.actions.browser.relaunchBrowser()
}
if (pingBaseUrl) {
this.ctx.actions.project.pingBaseUrl().catch(this.onLoadError)
}
}
await this.setInitialActiveBrowser()
this._pendingInitialize?.resolve(finalConfig)
this.ctx.emitter.configChange()
},
refreshLifecycle: async () => this.refreshLifecycle(),
})
}
/**
* Sets the initial `activeBrowser` depending on these criteria, in order of preference:
* 1. The value of `--browser` passed via CLI.
* 2. The last browser selected in `open` mode (by name and channel) for this project.
* 3. The first browser found.
*/
async setInitialActiveBrowser () {
if (this.ctx.coreData.cliBrowser) {
await this.setActiveBrowserByNameOrPath(this.ctx.coreData.cliBrowser)
const preferences = await this.ctx._apis.localSettingsApi.getPreferences()
const hasWelcomeBeenDismissed = Boolean(preferences.majorVersionWelcomeDismissed?.[MAJOR_VERSION_FOR_CONTENT])
// only continue if the browser was successfully set - we must have an activeBrowser once this function resolves
// but if the user needs to dismiss a landing page, don't continue, the active browser will be opened
// by a mutation called from the client side when the user dismisses the welcome screen
if (this.ctx.coreData.activeBrowser && hasWelcomeBeenDismissed) {
// if `cypress open` was launched with a `--project` and `--testingType`, go ahead and launch the `--browser`
if (this.ctx.modeOptions.project && this.ctx.modeOptions.testingType) {
await this.ctx.actions.project.launchProject(this.ctx.coreData.currentTestingType)
}
return
}
}
// lastBrowser is cached per-project.
const prefs = await this.ctx.project.getProjectPreferences(path.basename(this.projectRoot))
const browsers = await this.ctx.browser.allBrowsers()
if (!browsers[0]) {
this.ctx.onError(getError('UNEXPECTED_INTERNAL_ERROR', new Error('No browsers found, cannot set a browser')))
return
}
const browser = (prefs?.lastBrowser && browsers.find((b) => {
return b.name === prefs.lastBrowser!.name && b.channel === prefs.lastBrowser!.channel
})) || browsers[0]
this.ctx.actions.browser.setActiveBrowser(browser)
}
private async setActiveBrowserByNameOrPath (nameOrPath: string) {
try {
const browser = await this.ctx._apis.browserApi.ensureAndGetByNameOrPath(nameOrPath)
this.ctx.debug('browser found to set', browser.name)
this.ctx.actions.browser.setActiveBrowser(browser)
} catch (e) {
const error = e as CypressError
this.ctx.onWarning(error)
}
}
async refreshLifecycle (): Promise<void> {
if (!this._projectRoot || !this._configManager || !this.readyToInitialize(this._projectRoot)) {
return
}
// Make sure remote states in the server are reset when the project is reloaded.
// TODO: maybe we should also reset the server state here as well?
this.ctx._apis.projectApi.getRemoteStates()?.reset()
this._configManager.resetLoadingState()
// Emit here so that the user gets the impression that we're loading rather than waiting for a full refresh of the config for an update
this.ctx.emitter.toLaunchpad()
this.ctx.emitter.toApp()
await this.initializeConfig()
if (this._currentTestingType && this.isTestingTypeConfigured(this._currentTestingType)) {
if (this._currentTestingType === 'component') {
// Since we refresh the dev-server on config changes, we need to close it and clean up it's listeners
// before we can start a new one. This needs to happen before we have registered the events of the child process
this.ctx._apis.projectApi.getDevServer().close()
}
this._configManager.loadTestingType()
} else {
this.setAndLoadCurrentTestingType(null)
}
}
async waitForInitializeSuccess (): Promise<boolean> {
if (!this._configManager) {
return false
}
if (this._configManager?.isLoadingConfigFile) {
const span = telemetry.startSpan({ name: `dataContext:loadConfig` })
try {
await this.initializeConfig()
return true
} catch (error) {
this.ctx.debug('error thrown by initializeConfig', error)
return false
} finally {
span?.end()
}
}
return !this._configManager?.isInError
}
async initializeConfig () {
assert(this._configManager, 'Cannot initialize config without a config manager')
return this._configManager.initializeConfig()
}
private _setCurrentProject (projectRoot: string) {
process.chdir(projectRoot)
this._projectRoot = projectRoot
this._initializedProject = undefined
this._configManager = this.createConfigManager()
// Preemptively load these so that they are available when we need them later
this.ctx.browser.machineBrowsers().catch(this.onLoadError)
const packageManagerUsed = this.getPackageManagerUsed(projectRoot)
this.ctx.update((s) => {
s.currentProject = projectRoot
s.currentProjectGitInfo?.destroy()
s.currentProjectGitInfo = new GitDataSource({
isRunMode: this.ctx.isRunMode,
projectRoot,
onError: this.ctx.onError,
onBranchChange: () => {
this.ctx.emitter.branchChange()
},
onGitInfoChange: (specPaths) => {
this.ctx.emitter.gitInfoChange(specPaths)
},
onGitLogChange: async (shas) => {
await this.ctx.relevantRuns.checkRelevantRuns(shas)
},
})
s.eventCollectorSource?.destroy()
if (this.ctx.isOpenMode) {
s.eventCollectorSource = new EventCollectorSource(this.ctx)
}
s.diagnostics = { error: null, warnings: [] }
s.packageManager = packageManagerUsed
})
this.verifyProjectRoot(projectRoot)
if (this.readyToInitialize(this._projectRoot)) {
this._configManager.initializeConfig().catch(this.onLoadError)
}
}
/**
* When we set the current project, we need to cleanup the
* previous project that might have existed. We use this as the
* single location we should use to set the `projectRoot`, because
* we can call it from legacy code and it'll be a no-op if the `projectRoot`
* is already the same, otherwise it'll do the necessary cleanup
*/
async setCurrentProject (projectRoot: string) {
if (this._projectRoot === projectRoot) {
return
}
await this.resetInternalState()
this._setCurrentProject(projectRoot)
}
/**
* Handles pre-initialization checks. These will display warnings or throw with errors if catastrophic.
* Returns false, if we're not ready to initialize due to needing to migrate
*
* @param projectRoot the project's root
* @returns true if we can initialize and false if not
*/
private readyToInitialize (projectRoot: string): boolean {
const { needsCypressJsonMigration } = this.refreshMetaState()
const legacyConfigPath = path.join(projectRoot, this.ctx.migration.legacyConfigFile)
if (needsCypressJsonMigration && !this.ctx.isRunMode && this.ctx.fs.existsSync(legacyConfigPath)) {
return false
}
this.legacyPluginGuard()
this.configFileWarningCheck()
return this.metaState.hasValidConfigFile
}
async legacyMigration () {
try {
const legacyConfigPath = path.join(this.projectRoot, this.ctx.migration.legacyConfigFile)
// we run the legacy plugins/index.js in a child process
// and mutate the config based on the return value for migration
// only used in open mode (cannot migrate via terminal)
const legacyConfig = await this.ctx.fs.readJson(legacyConfigPath) as LegacyCypressConfigJson
// should never throw, unless there existing pluginsFile errors out,
// in which case they are attempting to migrate an already broken project.
await this.ctx.actions.migration.initialize(legacyConfig)
} catch (error) {
this.onLoadError(error)
}
}
get runModeExitEarly () {
return this._runModeExitEarly
}
set runModeExitEarly (val: ((err: Error) => void) | undefined) {
this._runModeExitEarly = val
}
/**
* Sets, but doesn't load the current testing type. This is useful
* for tests when we don't want to kick off node events
*/
setCurrentTestingType (testingType: TestingType | null) {
this.ctx.update((d) => {
d.currentTestingType = testingType
d.wizard.chosenBundler = null
d.wizard.chosenFramework = null
if (testingType) {
d.diagnostics = {
error: null,
warnings: [],
}
}
})
this._currentTestingType = testingType
assert(this._configManager, 'Cannot set a testing type without a config manager')
this._configManager.setTestingType(testingType)
}
/**
* Setting the testing type should automatically handle cleanup of existing
* processes and load the config / initialize the plugin process associated
* with the chosen testing type.
*/
setAndLoadCurrentTestingType (testingType: TestingType | null) {
this.ctx.update((d) => {
d.currentTestingType = testingType
d.wizard.chosenBundler = null
d.wizard.chosenFramework = null
})
if (this._currentTestingType === testingType) {
return
}
this._initializedProject = undefined
this._currentTestingType = testingType
assert(this._configManager, 'Cannot set a testing type without a config manager')
this._configManager.setTestingType(testingType)
if (!testingType) {
return
}
if (this.ctx.isRunMode && this.loadedConfigFile && !this.isTestingTypeConfigured(testingType)) {
return this.ctx.onError(getError('TESTING_TYPE_NOT_CONFIGURED', testingType))
}
if (this.ctx.isRunMode || (this.isTestingTypeConfigured(testingType) && !(this.ctx.coreData.forceReconfigureProject && this.ctx.coreData.forceReconfigureProject[testingType]))) {
this._configManager.loadTestingType()
}
}
private async resetInternalState () {
if (this._configManager) {
await this._configManager.destroy()
this._configManager = undefined
}
await this.ctx.coreData.currentProjectGitInfo?.destroy()
await this.ctx.project.destroy()
await this.ctx.coreData.eventCollectorSource?.destroy()
this._currentTestingType = null
this._cachedInitialConfig = undefined
this._cachedFullConfig = undefined
}
/**
* Equivalent to the legacy "config.get()",
* this sources the config from the various config sources
*/
async getFullInitialConfig (options: Partial<AllModeOptions> = this.ctx.modeOptions, withBrowsers = true): Promise<FullConfig> {
assert(this._configManager, 'Cannot get full config without a config manager')
return this._configManager.getFullInitialConfig(options, withBrowsers)
}
async getConfigFileContents () {
assert(this._configManager, 'Cannot get config file contents without a config manager')
return this._configManager.getConfigFileContents()
}
async reinitializeCypress () {
resetPluginHandlers()
await this.resetInternalState()
}
registerEvent (event: string, callback: Function) {
return this._eventRegistrar.registerEvent(event, callback)
}
hasNodeEvent (eventName: string) {
return this._eventRegistrar.hasNodeEvent(eventName)
}
executeNodeEvent (event: string, args: any[]) {
return this._eventRegistrar.executeNodeEvent(event, args)
}
private legacyPluginGuard () {
// test and warn for incompatible plugin
try {
const retriesPluginPath = path.dirname(resolve.sync('cypress-plugin-retries/package.json', {
basedir: this.projectRoot,
}))
this.ctx.onWarning(getError('INCOMPATIBLE_PLUGIN_RETRIES', path.relative(this.projectRoot, retriesPluginPath)))
} catch (e) {
// noop, incompatible plugin not installed
}
}
/**
* Find all information about the project we need to know to prompt different
* onboarding screens, suggestions in the onboarding wizard, etc.
*/
refreshMetaState (): ProjectMetaState {
const configFile = this.ctx.modeOptions.configFile
const metaState: ProjectMetaState = {
...PROJECT_META_STATE,
hasLegacyCypressJson: this.ctx.migration.legacyConfigFileExists(),
hasCypressEnvFile: fs.existsSync(this._pathToFile('cypress.env.json')),
}
try {
// TODO: convert to async FS method
// eslint-disable-next-line no-restricted-syntax
const pkgJson = this.ctx.fs.readJsonSync(this._pathToFile('package.json'))
if (pkgJson.type === 'module') {
metaState.isProjectUsingESModules = true
}
metaState.isUsingTypeScript = detectLanguage({
projectRoot: this.projectRoot,
customConfigFile: configFile,
pkgJson,
isMigrating: metaState.hasLegacyCypressJson,
}) === 'ts'
} catch {
// No need to handle
}
if (configFile) {
metaState.hasSpecifiedConfigViaCLI = this._pathToFile(configFile)
if (configFile.endsWith('.json')) {
metaState.needsCypressJsonMigration = true
const configFileNameAfterMigration = configFile.replace('.json', `.config.${metaState.isUsingTypeScript ? 'ts' : 'js'}`)
if (this.ctx.fs.existsSync(this._pathToFile(configFileNameAfterMigration))) {
if (this.ctx.fs.existsSync(this._pathToFile(configFile))) {
this.ctx.onError(getError('LEGACY_CONFIG_FILE', configFileNameAfterMigration, this.projectRoot, configFile))
} else {
this.ctx.onError(getError('MIGRATION_ALREADY_OCURRED', configFileNameAfterMigration, configFile))
}
}
} else {
this.setConfigFilePath(configFile)
if (fs.existsSync(this.configFilePath)) {
metaState.hasValidConfigFile = true
}
}
this._projectMetaState = metaState
return metaState
}
let configFilePathSet = false
metaState.allFoundConfigFiles = []
for (const fileName of POTENTIAL_CONFIG_FILES) {
const filePath = this._pathToFile(fileName)
const fileExists = fs.existsSync(filePath)
if (fileExists) {
// We'll collect all the found config files.
// If we found more than one, this list will be used in an error message.
metaState.allFoundConfigFiles.push(fileName)
// We've found our first config file! We'll continue looping to make sure there's
// only one. Looping over all config files is done so we can provide rich errors and warnings.
if (!configFilePathSet) {
metaState.hasValidConfigFile = true
this.setConfigFilePath(fileName)
configFilePathSet = true
}
}
}
// We finished looping through all of the possible config files
// And we *still* didn't find anything. Set the configFilePath to JS or TS.
if (!configFilePathSet) {
this.setConfigFilePath(`cypress.config.${metaState.isUsingTypeScript ? 'ts' : 'js'}`)
configFilePathSet = true
}
if (metaState.hasLegacyCypressJson && !metaState.hasValidConfigFile) {
metaState.needsCypressJsonMigration = true
}
this._projectMetaState = metaState
return metaState
}
private _pathToFile (file: string) {
return path.isAbsolute(file) ? file : path.join(this.projectRoot, file)
}
private verifyProjectRoot (root: string) {
try {
// TODO: convert to async fs call
// eslint-disable-next-line no-restricted-syntax
if (!fs.statSync(root).isDirectory()) {
throw new Error('NOT DIRECTORY')
}
} catch (err) {
throw getError('NO_PROJECT_FOUND_AT_PROJECT_ROOT', this.projectRoot)
}
}
async destroy () {
await this.resetInternalState()
}
isTestingTypeConfigured (testingType: TestingType): boolean {
const config = this.loadedConfigFile
if (!config) {
return false
}
if (!_.has(config, testingType)) {
return false
}
if (testingType === 'component') {
return Boolean(config.component?.devServer)
}
return true
}
async initializeOpenMode (testingType: TestingType | null) {
if (this._projectRoot && testingType && await this.waitForInitializeSuccess()) {
this.setAndLoadCurrentTestingType(testingType)
await this.initializeProjectSetup(testingType)
}
}
/**
* Prepare the setup process for a project if one exists, otherwise complete setup
*
* @param testingType
* @returns
*/
async initializeProjectSetup (testingType: TestingType) {
if (this.isTestingTypeConfigured(testingType)) {
return
}
if (testingType === 'e2e' && !this.ctx.migration.needsCypressJsonMigration()) {
// E2E doesn't have a wizard, so if we have a testing type on load we just create/update their cypress.config.js.
await this.ctx.actions.wizard.scaffoldTestingType()
} else if (testingType === 'component') {
await this.ctx.actions.wizard.detectFrameworks()
await this.ctx.actions.wizard.initialize()
}
}
async initializeRunMode (testingType: TestingType | null) {
this._pendingInitialize = pDefer()
if (await this.waitForInitializeSuccess()) {
if (!this.metaState.hasValidConfigFile) {
return this.ctx.onError(getError('NO_DEFAULT_CONFIG_FILE_FOUND', this.projectRoot))
}
const span = telemetry.startSpan({ name: 'dataContext:setAndLoadCurrentTestingType' })
span?.setAttributes({ testingType: testingType ? testingType : 'undefined' })
if (testingType) {
this.setAndLoadCurrentTestingType(testingType)
} else {
this.setAndLoadCurrentTestingType('e2e')
}
}
return this._pendingInitialize.promise.finally(() => {
telemetry.getSpan('dataContext:setAndLoadCurrentTestingType')?.end()
this._pendingInitialize = undefined
})
}
private configFileWarningCheck () {
// Only if they've explicitly specified a config file path do we error, otherwise they'll go through onboarding
if (!this.metaState.hasValidConfigFile && this.metaState.hasSpecifiedConfigViaCLI !== false && this.ctx.isRunMode) {
this.onLoadError(getError('CONFIG_FILE_NOT_FOUND', path.basename(this.metaState.hasSpecifiedConfigViaCLI), path.dirname(this.metaState.hasSpecifiedConfigViaCLI)))
}
if (this.metaState.hasLegacyCypressJson && !this.metaState.hasValidConfigFile && this.ctx.isRunMode) {
this.onLoadError(getError('CONFIG_FILE_MIGRATION_NEEDED', this.projectRoot))
}
if (this.metaState.allFoundConfigFiles.length > 1) {
this.onLoadError(getError('CONFIG_FILES_LANGUAGE_CONFLICT', this.projectRoot, this.metaState.allFoundConfigFiles))
}
if (this.metaState.hasValidConfigFile && this.metaState.hasLegacyCypressJson) {
this.onLoadError(getError('LEGACY_CONFIG_FILE', path.basename(this.configFilePath), this.projectRoot))
}
}
/**
* When there is an error during any part of the lifecycle
* initiation, we pass it through here. This allows us to intercept
* centrally in the e2e tests, as well as notify the "pending initialization"
* for run mode
*/
onLoadError = (err: CypressError) => {
if (this.ctx.isRunMode && this._pendingInitialize) {
this._pendingInitialize.reject(err)
} else {
this.ctx.onError(err, 'Cypress configuration error')
}
}
mainProcessWillDisconnect (): Promise<void> {
if (!this._configManager) {
return Promise.resolve()
}
return this._configManager.mainProcessWillDisconnect()
}
}
| cypress/packages/data-context/src/data/ProjectLifecycleManager.ts/0 | {
"file_path": "cypress/packages/data-context/src/data/ProjectLifecycleManager.ts",
"repo_id": "cypress",
"token_count": 10374
} | 95 |
import type { TestingType } from '@packages/types'
import type chokidar from 'chokidar'
import type { DataContext } from '..'
import {
createConfigString,
initComponentTestingMigration,
ComponentTestingMigrationStatus,
supportFilesForMigration,
getSpecs,
applyMigrationTransform,
shouldShowRenameSupport,
getIntegrationFolder,
isDefaultTestFiles,
getComponentTestFilesGlobs,
getComponentFolder,
} from './migration'
import _ from 'lodash'
import type { FilePart } from './migration/format'
import Debug from 'debug'
import path from 'path'
const debug = Debug('cypress:data-context:sources:MigrationDataSource')
export type LegacyCypressConfigJson = Partial<{
component: Omit<LegacyCypressConfigJson, 'component' | 'e2e'>
e2e: Omit<LegacyCypressConfigJson, 'component' | 'e2e'>
pluginsFile: string | false
supportFile: string | false
slowTestThreshold: number
componentFolder: string | false
integrationFolder: string
testFiles: string | string[]
ignoreTestFiles: string | string[]
env: { [key: string]: any }
[index: string]: any
}>
export interface MigrationFile {
testingType: TestingType
before: {
relative: string
parts: FilePart[]
}
after: {
relative: string
parts: FilePart[]
}
}
export class MigrationDataSource {
private componentTestingMigrationWatcher: chokidar.FSWatcher | null = null
componentTestingMigrationStatus?: ComponentTestingMigrationStatus
constructor (private ctx: DataContext) { }
get legacyConfig () {
if (!this.ctx.coreData.migration.legacyConfigForMigration) {
throw Error(`Expected _legacyConfig to be set. Did you forget to call MigrationDataSource#initialize?`)
}
return this.ctx.coreData.migration.legacyConfigForMigration
}
get legacyConfigProjectId () {
return this.legacyConfig.projectId || this.legacyConfig.e2e?.projectId
}
get shouldMigratePreExtension () {
return !this.legacyConfigProjectId
}
get legacyConfigFile () {
if (this.ctx.modeOptions.configFile && this.ctx.modeOptions.configFile.endsWith('.json')) {
return this.ctx.modeOptions.configFile
}
return 'cypress.json'
}
legacyConfigFileExists (): boolean {
// If we aren't in a current project we definitely don't have a legacy config file
if (!this.ctx.currentProject) {
return false
}
const configFilePath = path.isAbsolute(this.legacyConfigFile) ? this.legacyConfigFile : path.join(this.ctx.currentProject, this.legacyConfigFile)
const legacyConfigFileExists = this.ctx.fs.existsSync(configFilePath)
return Boolean(legacyConfigFileExists)
}
needsCypressJsonMigration (): boolean {
const legacyConfigFileExists = this.legacyConfigFileExists()
return this.ctx.lifecycleManager.metaState.needsCypressJsonMigration && Boolean(legacyConfigFileExists)
}
async getVideoEmbedHtml () {
if (this.ctx.coreData.migration.videoEmbedHtml) {
return this.ctx.coreData.migration.videoEmbedHtml
}
const versionData = await this.ctx.versions.versionData()
const embedOnLink = `https://on.cypress.io/v13-video-embed/${versionData.current.version}`
debug(`Getting videoEmbedHtml at link: ${embedOnLink}`)
// Time out request if it takes longer than 3 seconds
const controller = new AbortController()
const timeoutId = setTimeout(() => controller.abort(), 3000)
try {
const response = await this.ctx.util.fetch(embedOnLink, { method: 'GET', signal: controller.signal })
const { videoHtml } = await response.json()
this.ctx.update((d) => {
d.migration.videoEmbedHtml = videoHtml
})
return videoHtml
} catch {
// fail silently, no user-facing error is needed
return null
} finally {
clearTimeout(timeoutId)
}
}
async getComponentTestingMigrationStatus () {
debug('getComponentTestingMigrationStatus: start')
if (!this.legacyConfig || !this.ctx.currentProject) {
throw Error('Need currentProject and config to continue')
}
const componentFolder = getComponentFolder(this.legacyConfig)
// no component folder, so no specs to migrate
// this should never happen since we never show the
// component specs migration step ("renameManual")
if (componentFolder === false) {
return null
}
debug('getComponentTestingMigrationStatus: componentFolder', componentFolder)
if (!this.componentTestingMigrationWatcher) {
debug('getComponentTestingMigrationStatus: initializing watcher')
const onFileMoved = async (status: ComponentTestingMigrationStatus) => {
this.componentTestingMigrationStatus = status
debug('getComponentTestingMigrationStatus: file moved %O', status)
if (status.completed) {
await this.componentTestingMigrationWatcher?.close()
this.componentTestingMigrationWatcher = null
}
// TODO(lachlan): is this the right place to use the emitter?
this.ctx.emitter.toLaunchpad()
}
const { status, watcher } = await initComponentTestingMigration(
this.ctx.currentProject,
componentFolder,
getComponentTestFilesGlobs(this.legacyConfig),
onFileMoved,
)
this.componentTestingMigrationStatus = status
this.componentTestingMigrationWatcher = watcher
debug('getComponentTestingMigrationStatus: watcher initialized. Status: %o', status)
}
if (!this.componentTestingMigrationStatus) {
throw Error(`Status should have been assigned by the watcher. Something is wrong`)
}
return this.componentTestingMigrationStatus
}
async supportFilesForMigrationGuide (): Promise<MigrationFile | null> {
if (!this.ctx.currentProject) {
throw Error('Need this.ctx.currentProject')
}
debug('supportFilesForMigrationGuide: config %O', this.legacyConfig)
if (!await shouldShowRenameSupport(this.ctx.currentProject, this.legacyConfig)) {
return null
}
if (!this.ctx.currentProject) {
throw Error(`Need this.ctx.projectRoot!`)
}
try {
const supportFiles = await supportFilesForMigration(this.ctx.currentProject)
debug('supportFilesForMigrationGuide: supportFiles %O', supportFiles)
return supportFiles
} catch (err) {
debug('supportFilesForMigrationGuide: err %O', err)
return null
}
}
async getSpecsForMigrationGuide (): Promise<MigrationFile[]> {
if (!this.ctx.currentProject) {
throw Error(`Need this.ctx.projectRoot!`)
}
const specs = await getSpecs(this.ctx.currentProject, this.legacyConfig)
const e2eMigrationOptions = {
// If the configFile has projectId, we do not want to change the preExtension
// so, we can keep the cloud history
shouldMigratePreExtension: this.shouldMigratePreExtension,
}
const canBeAutomaticallyMigrated: MigrationFile[] = specs.integration.map((s) => applyMigrationTransform(s, e2eMigrationOptions)).filter((spec) => spec.before.relative !== spec.after.relative)
const defaultComponentPattern = isDefaultTestFiles(this.legacyConfig, 'component')
// Can only migration component specs if they use the default testFiles pattern.
if (defaultComponentPattern) {
canBeAutomaticallyMigrated.push(...specs.component.map((s) => applyMigrationTransform(s)).filter((spec) => spec.before.relative !== spec.after.relative))
}
return this.checkAndUpdateDuplicatedSpecs(canBeAutomaticallyMigrated)
}
async createConfigString () {
if (!this.ctx.currentProject) {
throw Error('Need currentProject!')
}
const { isUsingTypeScript } = this.ctx.lifecycleManager.metaState
return createConfigString(this.legacyConfig, {
hasComponentTesting: this.ctx.coreData.migration.flags.hasComponentTesting,
hasE2ESpec: this.ctx.coreData.migration.flags.hasE2ESpec,
hasPluginsFile: this.ctx.coreData.migration.flags.hasPluginsFile,
projectRoot: this.ctx.currentProject,
isUsingTypeScript,
isProjectUsingESModules: this.ctx.lifecycleManager.metaState.isProjectUsingESModules,
shouldAddCustomE2ESpecPattern: this.ctx.coreData.migration.flags.shouldAddCustomE2ESpecPattern,
})
}
async integrationFolder () {
return getIntegrationFolder(this.legacyConfig)
}
async componentFolder () {
return getComponentFolder(this.legacyConfig)
}
async closeManualRenameWatcher () {
if (this.componentTestingMigrationWatcher) {
await this.componentTestingMigrationWatcher.close()
this.componentTestingMigrationWatcher = null
}
}
get configFileNameAfterMigration () {
return this.legacyConfigFile.replace('.json', `.config.${this.ctx.lifecycleManager.fileExtensionToUse}`)
}
private checkAndUpdateDuplicatedSpecs (specs: MigrationFile[]) {
const updatedSpecs: MigrationFile[] = []
const sortedSpecs = this.sortSpecsByExtension(specs)
sortedSpecs.forEach((spec) => {
const specExist = _.find(updatedSpecs, (x) => x.after.relative === spec.after.relative)
if (specExist) {
const beforeParts: FilePart[] = JSON.parse(JSON.stringify(spec.before.parts))
const preExtensionBefore = beforeParts.find((part) => part.group === 'preExtension')
if (preExtensionBefore) {
preExtensionBefore.highlight = false
}
const afterParts: FilePart[] = JSON.parse(JSON.stringify(spec.after.parts))
const fileNameAfter = afterParts.find((part) => part.group === 'fileName')
if (fileNameAfter && preExtensionBefore) {
const beforePreExtension = preExtensionBefore?.text?.replace('.', '')
fileNameAfter.text = `${fileNameAfter.text}${beforePreExtension}`
}
spec.before.parts = beforeParts
spec.after.parts = afterParts
spec.after.relative = afterParts.map((x) => x.text).join('')
}
updatedSpecs.push(spec)
})
return updatedSpecs
}
private sortSpecsByExtension (specs: MigrationFile[]) {
const sortedExtensions = ['.spec.', '.Spec.', '_spec.', '_Spec.', '-spec.', '-Spec.', '.test.', '.Test.', '_test.', '_Test.', '-test.', '-Test.']
return specs.sort(function (a, b) {
function getExtIndex (spec: string) {
let index = -1
// Sort the specs based on the extension, giving priority to .spec
sortedExtensions.some((c, i) => {
if (~spec.indexOf(c)) {
index = i
return true
}
return false
})
return index
}
return getExtIndex(a.before.relative) - getExtIndex(b.before.relative)
})
}
}
| cypress/packages/data-context/src/sources/MigrationDataSource.ts/0 | {
"file_path": "cypress/packages/data-context/src/sources/MigrationDataSource.ts",
"repo_id": "cypress",
"token_count": 3725
} | 96 |
import globby from 'globby'
import path from 'path'
import { MIGRATION_STEPS } from '@packages/types'
import { applyMigrationTransform, getSpecs, isDefaultSupportFile, legacyIntegrationFolder, tryGetDefaultLegacySupportFile } from '.'
import type { LegacyCypressConfigJson } from '..'
export const defaultTestFilesGlob = '**/*.{js,ts,jsx,tsx,coffee,cjsx}'
function getTestFilesGlobs (config: LegacyCypressConfigJson, type: 'component' | 'integration'): string[] {
// super awkward how we call it integration tests, but the key to override
// the config is `e2e`
const k = type === 'component' ? 'component' : 'e2e'
const glob = config[k]?.testFiles ?? config.testFiles
if (glob) {
return ([] as string[]).concat(glob)
}
return [defaultTestFilesGlob]
}
export function getIntegrationTestFilesGlobs (config: LegacyCypressConfigJson): string[] {
return getTestFilesGlobs(config, 'integration')
}
export function getComponentTestFilesGlobs (config: LegacyCypressConfigJson): string[] {
return getTestFilesGlobs(config, 'component')
}
export function isDefaultTestFiles (config: LegacyCypressConfigJson, type: 'component' | 'integration') {
const testFiles = type === 'component'
? getComponentTestFilesGlobs(config)
: getIntegrationTestFilesGlobs(config)
return testFiles.length === 1 && testFiles[0] === defaultTestFilesGlob
}
export function getPluginsFile (config: LegacyCypressConfigJson) {
if (config.e2e?.pluginsFile === false || config.pluginsFile === false) {
return false
}
return config.e2e?.pluginsFile ?? config.pluginsFile ?? 'cypress/plugins/index.js'
}
export function getIntegrationFolder (config: LegacyCypressConfigJson) {
return config.e2e?.integrationFolder ?? config.integrationFolder ?? legacyIntegrationFolder
}
export function getComponentFolder (config: LegacyCypressConfigJson): false | string {
if (config.component?.componentFolder === false || config.componentFolder === false) {
return false
}
return config.component?.componentFolder ?? config.componentFolder ?? 'cypress/component'
}
async function hasSpecFiles (projectRoot: string, dir: string, testFilesGlob: string[]): Promise<boolean> {
const f = await globby(testFilesGlob, { cwd: path.join(projectRoot, dir) })
return f.length > 0
}
export async function shouldShowAutoRenameStep (projectRoot: string, config: LegacyCypressConfigJson) {
const specsToAutoMigrate = await getSpecs(projectRoot, config)
const e2eMigrationOptions = {
// If the configFile has projectId, we do not want to change the preExtension
// so, we can keep the cloud history
shouldMigratePreExtension: !config.projectId && !config.e2e?.projectId,
}
const integrationCleaned = specsToAutoMigrate.integration.filter((spec) => {
const transformed = applyMigrationTransform(spec, e2eMigrationOptions)
return transformed.before.relative !== transformed.after.relative
})
const componentCleaned = specsToAutoMigrate.component.filter((spec) => {
const transformed = applyMigrationTransform(spec)
return transformed.before.relative !== transformed.after.relative
})
// if we have at least one spec to auto migrate in either Ct or E2E, we return true.
return integrationCleaned.length > 0 || componentCleaned.length > 0
}
async function anyComponentSpecsExist (projectRoot: string, config: LegacyCypressConfigJson) {
const componentFolder = getComponentFolder(config)
if (componentFolder === false) {
return false
}
const componentTestFiles = getComponentTestFilesGlobs(config)
return hasSpecFiles(projectRoot, componentFolder, componentTestFiles)
}
async function anyIntegrationSpecsExist (projectRoot: string, config: LegacyCypressConfigJson) {
const integrationFolder = getIntegrationFolder(config)
const integrationTestFiles = getIntegrationTestFilesGlobs(config)
return hasSpecFiles(projectRoot, integrationFolder, integrationTestFiles)
}
// we only show rename support file if they are using the default
// if they have anything set in their config, we will not try to rename it.
// Also, if there are no **no** integration specs, we are doing a CT only migration,
// in which case we don't migrate the supportFile - they'll make a new support/component.js
// when they set CT up.
export async function shouldShowRenameSupport (projectRoot: string, config: LegacyCypressConfigJson) {
if (!await anyIntegrationSpecsExist(projectRoot, config)) {
return false
}
let supportFile = config.e2e?.supportFile ?? config.supportFile
if (supportFile === undefined) {
const foundDefaultSupportFile = await tryGetDefaultLegacySupportFile(projectRoot)
if (foundDefaultSupportFile) {
supportFile = foundDefaultSupportFile
}
}
// if the support file is set to false, we don't show the rename step
// if the support file does not exist (value is undefined), we don't show the rename step
if (!supportFile) {
return false
}
// if the support file is custom, we don't show the rename step
// only if the support file matches the default do we show the rename step
return isDefaultSupportFile(supportFile)
}
// if they have component testing configured using the defaults, they will need to
// rename/move their specs.
async function shouldShowRenameManual (projectRoot: string, config: LegacyCypressConfigJson) {
const componentFolder = getComponentFolder(config)
const usingAllDefaults = componentFolder === 'cypress/component' && isDefaultTestFiles(config, 'component')
if (componentFolder === false || !usingAllDefaults) {
return false
}
return anyComponentSpecsExist(projectRoot, config)
}
// All projects must move from cypress.json to cypress.config.js!
export function shouldShowConfigFileStep (config: LegacyCypressConfigJson) {
return true
}
export type Step = typeof MIGRATION_STEPS[number]
export async function getStepsForMigration (
projectRoot: string,
config: LegacyCypressConfigJson,
configFileExists: boolean,
): Promise<Step[]> {
const steps: Step[] = []
for (const step of MIGRATION_STEPS) {
if (step === 'renameAuto' && await shouldShowAutoRenameStep(projectRoot, config)) {
steps.push(step)
}
if (step === 'renameManual' && await shouldShowRenameManual(projectRoot, config)) {
steps.push(step)
}
if (step === 'renameSupport' && await shouldShowRenameSupport(projectRoot, config)) {
steps.push(step)
}
if (step === 'configFile' && configFileExists) {
steps.push(step)
}
// if we are showing rename manual, this implies
// component testing is configured.
if (step === 'setupComponent' && await anyComponentSpecsExist(projectRoot, config)) {
steps.push(step)
}
}
return steps
}
| cypress/packages/data-context/src/sources/migration/shouldShowSteps.ts/0 | {
"file_path": "cypress/packages/data-context/src/sources/migration/shouldShowSteps.ts",
"repo_id": "cypress",
"token_count": 2017
} | 97 |
import type { DataContext } from '../../../src'
import { CodegenActions } from '../../../src/actions/CodegenActions'
import { createTestDataContext } from '../helper'
import { expect } from 'chai'
import sinon from 'sinon'
import path from 'path'
describe('CodegenActions', () => {
let ctx: DataContext
let actions: CodegenActions
let reactDocgen: typeof import('react-docgen')
beforeEach(async () => {
sinon.restore()
ctx = createTestDataContext('open')
reactDocgen = await eval('import("react-docgen")')
actions = new CodegenActions(ctx)
})
context('getReactComponentsFromFile', () => {
const absolutePathPrefix = path.resolve('./test/unit/actions/project')
it('returns React components from file with class component', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-class.jsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('Counter')
expect(components[0].isDefault).to.equal(false)
})
it('returns React components from file with functional component', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-functional.jsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('Counter')
expect(components[0].isDefault).to.equal(false)
})
it('returns only exported React components from file with functional components', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-multiple-components.jsx`, reactDocgen)
expect(components).to.have.length(2)
expect(components[0].exportName).to.equal('CounterContainer')
expect(components[0].isDefault).to.equal(false)
expect(components[1].exportName).to.equal('CounterView')
expect(components[1].isDefault).to.equal(false)
})
it('returns React components from a tsx file', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter.tsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('Counter')
expect(components[0].isDefault).to.equal(false)
})
it('returns React components that are exported by default', async () => {
let reactComponents = await (await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-default.tsx`, reactDocgen)).components
expect(reactComponents).to.have.length(1)
expect(reactComponents[0].exportName).to.equal('CounterDefault')
expect(reactComponents[0].isDefault).to.equal(true)
reactComponents = await (await actions.getReactComponentsFromFile(`${absolutePathPrefix}/default-anonymous.jsx`, reactDocgen)).components
expect(reactComponents).to.have.length(1)
expect(reactComponents[0].exportName).to.equal('Component')
expect(reactComponents[0].isDefault).to.equal(true)
reactComponents = await (await actions.getReactComponentsFromFile(`${absolutePathPrefix}/default-function.jsx`, reactDocgen)).components
expect(reactComponents).to.have.length(1)
expect(reactComponents[0].exportName).to.equal('HelloWorld')
expect(reactComponents[0].isDefault).to.equal(true)
reactComponents = await (await actions.getReactComponentsFromFile(`${absolutePathPrefix}/default-class.jsx`, reactDocgen)).components
expect(reactComponents).to.have.length(1)
expect(reactComponents[0].exportName).to.equal('HelloWorld')
expect(reactComponents[0].isDefault).to.equal(true)
reactComponents = await (await actions.getReactComponentsFromFile(`${absolutePathPrefix}/default-specifier.jsx`, reactDocgen)).components
expect(reactComponents).to.have.length(1)
expect(reactComponents[0].exportName).to.equal('HelloWorld')
expect(reactComponents[0].isDefault).to.equal(true)
})
it('returns React components defined with arrow functions', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-arrow-function.jsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('Counter')
expect(components[0].isDefault).to.equal(false)
})
it('returns React components from a file with multiple separate export statements', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-separate-exports.jsx`, reactDocgen)
expect(components).to.have.length(2)
expect(components[0].exportName).to.equal('CounterView')
expect(components[0].isDefault).to.equal(false)
expect(components[1].exportName).to.equal('CounterContainer')
expect(components[1].isDefault).to.equal(true)
})
it('returns React components that are exported and aliased', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/export-alias.jsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('HelloWorld')
expect(components[0].isDefault).to.equal(false)
})
// TODO: "react-docgen" will resolve HOCs but our export detection does not. Can fall back to displayName here
it.skip('handles higher-order-components', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/counter-hoc.jsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('Counter')
expect(components[0].isDefault).to.equal(true)
})
it('correctly parses typescript files', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/LoginForm.tsx`, reactDocgen)
expect(components).to.have.length(1)
expect(components[0].exportName).to.equal('LoginForm')
expect(components[0].isDefault).to.equal(true)
})
it('does not throw while parsing empty file', async () => {
const { components } = await actions.getReactComponentsFromFile(`${absolutePathPrefix}/empty.jsx`, reactDocgen)
expect(components).to.have.length(0)
})
})
})
| cypress/packages/data-context/test/unit/actions/CodegenActions.spec.ts/0 | {
"file_path": "cypress/packages/data-context/test/unit/actions/CodegenActions.spec.ts",
"repo_id": "cypress",
"token_count": 2205
} | 98 |
import React from 'react'
function CounterContainer () {
const [count, setCount] = React.useState(0)
return <CounterView count={count} setCount={setCount} />
}
function CounterView ({ count, setCount }) {
return <p onClick={() => setCount(count + 1)}>count: {count}</p>
}
export {
CounterView,
}
export default CounterContainer
| cypress/packages/data-context/test/unit/actions/project/counter-separate-exports.jsx/0 | {
"file_path": "cypress/packages/data-context/test/unit/actions/project/counter-separate-exports.jsx",
"repo_id": "cypress",
"token_count": 107
} | 99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.