mirror of
https://github.com/hanzoai/Detox.git
synced 2026-09-24 16:55:12 +00:00
41 lines
966 B
Plaintext
41 lines
966 B
Plaintext
@startuml
|
|
|
|
actor User
|
|
boundary "Jest (main)" as Jest0
|
|
participant "jest.config.js" as jestConfig
|
|
participant "globalSetup" as globalSetup
|
|
participant "reporters" as jestReporter
|
|
participant "globalTeardown.js" as globalTeardown
|
|
boundary "Jest (worker N)" as JestN
|
|
|
|
User -> Jest0 : jest ...
|
|
activate Jest0
|
|
Jest0 -> jestConfig: import
|
|
activate jestConfig
|
|
jestConfig -> Jest0: await
|
|
deactivate jestConfig
|
|
Jest0 -> globalSetup: import
|
|
activate globalSetup
|
|
globalSetup -> Jest0: await
|
|
deactivate globalSetup
|
|
Jest0 -> jestReporter: import
|
|
activate jestReporter
|
|
Jest0 -> jestReporter: onRunStart()
|
|
Jest0 -> JestN: child_process.fork()
|
|
activate JestN
|
|
loop every test file
|
|
Jest0 -> JestN: runTests()
|
|
JestN -> jestReporter: onTestFileResult()
|
|
end loop
|
|
deactivate JestN
|
|
Jest0 -> jestReporter: onRunComplete()
|
|
deactivate jestReporter
|
|
Jest0 -> globalTeardown: import
|
|
activate globalTeardown
|
|
globalTeardown -> Jest0: await
|
|
deactivate globalTeardown
|
|
|
|
deactivate Jest0
|
|
|
|
@enduml
|