ava 3.10.0 → 3.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/fork.js +2 -9
  2. package/package.json +1 -1
package/lib/fork.js CHANGED
@@ -14,12 +14,6 @@ const AVA_PATH = path.resolve(__dirname, '..');
14
14
 
15
15
  const workerPath = require.resolve('./worker/subprocess');
16
16
 
17
- const useAdvanced = process.versions.node >= '12.16.0';
18
- // FIXME: Fix this in api.js or cli.js.
19
- const serializeOptions = useAdvanced ?
20
- options => JSON.parse(JSON.stringify(options)) : // Use JSON serialization to remove non-clonable values.
21
- options => options;
22
-
23
17
  module.exports = (file, options, execArgv = process.execArgv) => {
24
18
  let finished = false;
25
19
 
@@ -40,8 +34,7 @@ module.exports = (file, options, execArgv = process.execArgv) => {
40
34
  cwd: options.projectDir,
41
35
  silent: true,
42
36
  env: {NODE_ENV: 'test', ...process.env, ...options.environmentVariables, AVA_PATH},
43
- execArgv,
44
- serialization: useAdvanced ? 'advanced' : 'json'
37
+ execArgv
45
38
  });
46
39
 
47
40
  subprocess.stdout.on('data', chunk => {
@@ -73,7 +66,7 @@ module.exports = (file, options, execArgv = process.execArgv) => {
73
66
  }
74
67
 
75
68
  if (message.ava.type === 'ready-for-options') {
76
- send({type: 'options', options: serializeOptions(options)});
69
+ send({type: 'options', options});
77
70
  return;
78
71
  }
79
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ava",
3
- "version": "3.10.0",
3
+ "version": "3.10.1",
4
4
  "description": "Node.js test runner that lets you develop with confidence.",
5
5
  "license": "MIT",
6
6
  "repository": "avajs/ava",