File size: 590 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};

// Defines common structures returned by jest/jest-circus. Shared across turbo
// and next.js repos.

/// The serialized form of the JS object returned from jest.run()
/// describing results.
#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct JestRunResult {
    pub test_results: Vec<JestTestResult>,
}

#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct JestTestResult {
    pub test_path: Vec<String>,
    pub errors: Vec<String>,
}