# Pastebin LqSXUSTh GET /work 1) "before all" hook 0 passing (13s) 1 failing 1) GET /work "before all" hook: insert into "bookbrainz"."identifier" ("id", "type_id", "value") values ($1, $2, $3) returning "id" - insert or update on table "identifier" violates foreign key constraint "identifier_type_id_fkey" error: insert or update on table "identifier" violates foreign key constraint "identifier_type_id_fkey" at Connection.parseE (node_modules/pg/lib/connection.js:601:11) at Connection.parseMessage (node_modules/pg/lib/connection.js:398:19) at Socket. (node_modules/pg/lib/connection.js:120:22) at addChunk (_stream_readable.js:284:12) at readableAddChunk (_stream_readable.js:265:11) at Socket.Readable.push (_stream_readable.js:220:10) at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17) From previous event: at Client_PG._query (node_modules/knex/lib/dialects/postgres/index.js:260:12) at Client_PG.query (node_modules/knex/lib/client.js:202:17) at Runner. (node_modules/knex/lib/runner.js:146:36) From previous event: at node_modules/knex/lib/runner.js:48:21 From previous event: at Runner.run (node_modules/knex/lib/runner.js:34:31) at Builder.Target.then (node_modules/knex/lib/interface.js:20:43) at Child. (node_modules/bookshelf/lib/model.js:1111:36) From previous event: at Child. (node_modules/bookshelf/lib/model.js:1110:125) From previous event: at Child. (node_modules/bookshelf/lib/model.js:1010:8) From previous event: at Child.save (node_modules/bookshelf/lib/plugins/virtuals.js:164:25) at Context.before (test/src/api/routes/test-work.js:80:7) About to exit with code: 1 Cleaning up before closing npm ERR! Test failed. See above for more details.