Skip to content

Commit

Permalink
chore: extract defaultFixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Nov 20, 2020
1 parent d194e0d commit 8a3dafb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ const { getNewPort } = require('../packages/remote');
const debug = require('./debug');
const stoppable = require('stoppable');

const defaultFixtures = path.resolve(__dirname, '../fixtures');

class Server {
constructor(fixtures) {
this.fixtures = fixtures || path.resolve(__dirname, '../fixtures');
this.fixtures = fixtures || defaultFixtures;
}

async start(port) {
Expand Down

0 comments on commit 8a3dafb

Please sign in to comment.