Skip to content

Commit

Permalink
chore(): tests to import from src instead of dist
Browse files Browse the repository at this point in the history
  • Loading branch information
chyzwar committed Nov 2, 2020
1 parent 9935c92 commit 76a5316
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/async-iterator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QueryStream from '../dist'
import QueryStream from '../src'
import pg from 'pg'
import assert from 'assert'

Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/client-options.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pg from 'pg'
import assert from 'assert'
const QueryStream = require('../')
import QueryStream from '../src'

describe('client options', function () {
it('uses custom types from client config', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/close.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import concat from 'concat-stream'
import QueryStream from '../'
import QueryStream from '../src'
import helper from './helper'

if (process.version.startsWith('v8.')) {
Expand Down
3 changes: 1 addition & 2 deletions packages/pg-query-stream/test/concat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import assert from 'assert'
import concat from 'concat-stream'
import through from 'through'
import helper from './helper'

const QueryStream = require('../')
import QueryStream from '../src'

helper('concat', function (client) {
it('concats correctly', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert'
import QueryStream from '../'
import QueryStream from '../src'

describe('stream config options', () => {
// this is mostly for backwards compatibility.
Expand Down
3 changes: 1 addition & 2 deletions packages/pg-query-stream/test/empty-query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import assert from 'assert'
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'

helper('empty-query', function (client) {
it('handles empty query', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/error.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'

helper('error', function (client) {
it('receives error on stream', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/fast-reader.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'

helper('fast reader', function (client) {
it('works', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/instant.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import helper from './helper'
import assert from 'assert'
import concat from 'concat-stream'
import QueryStream from '../'
import QueryStream from '../src'

helper('instant', function (client) {
it('instant', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/issue-3.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pg from 'pg'
import QueryStream from '../'
import QueryStream from '../src'

describe('end semantics race condition', function () {
before(function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/passing-options.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert'
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'

helper('passing options', function (client) {
it('passes row mode array', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/pauses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import helper from './helper'
import concat from 'concat-stream'
import tester from 'stream-tester'
import JSONStream from 'JSONStream'
import QueryStream from '../'
import QueryStream from '../src'

helper('pauses', function (client) {
it('pauses', function (done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/slow-reader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'
import concat from 'concat-stream'

import { Transform } from 'stream'
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/stream-tester-timestamp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'
import spec from 'stream-spec'
import assert from 'assert'

Expand Down
2 changes: 1 addition & 1 deletion packages/pg-query-stream/test/stream-tester.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import spec from 'stream-spec'
import helper from './helper'
import QueryStream from '../'
import QueryStream from '../src'

helper('stream tester', function (client) {
it('passes stream spec', function (done) {
Expand Down

0 comments on commit 76a5316

Please sign in to comment.